Trait HTMLInputElementMethods

Source
pub(crate) trait HTMLInputElementMethods<D>
where D: DomTypes,
{
Show 84 methods // Required methods fn Accept(&self) -> DOMString; fn SetAccept(&self, value: DOMString); fn Alt(&self) -> DOMString; fn SetAlt(&self, value: DOMString); fn DefaultChecked(&self) -> bool; fn SetDefaultChecked(&self, value: bool); fn Checked(&self) -> bool; fn SetChecked(&self, value: bool); fn DirName(&self) -> DOMString; fn SetDirName(&self, value: DOMString); fn Disabled(&self) -> bool; fn SetDisabled(&self, value: bool); fn GetForm(&self) -> Option<Root<Dom<<D as DomTypes>::HTMLFormElement>>>; fn GetFiles(&self) -> Option<Root<Dom<<D as DomTypes>::FileList>>>; fn SetFiles(&self, value: Option<&<D as DomTypes>::FileList>); fn FormAction(&self) -> DOMString; fn SetFormAction(&self, value: DOMString); fn FormEnctype(&self) -> DOMString; fn SetFormEnctype(&self, value: DOMString); fn FormMethod(&self) -> DOMString; fn SetFormMethod(&self, value: DOMString); fn FormNoValidate(&self) -> bool; fn SetFormNoValidate(&self, value: bool); fn FormTarget(&self) -> DOMString; fn SetFormTarget(&self, value: DOMString); fn Indeterminate(&self) -> bool; fn SetIndeterminate(&self, value: bool); fn GetList(&self) -> Option<Root<Dom<<D as DomTypes>::HTMLDataListElement>>>; fn Max(&self) -> DOMString; fn SetMax(&self, value: DOMString); fn MaxLength(&self) -> i32; fn SetMaxLength(&self, value: i32) -> Result<(), Error>; fn Min(&self) -> DOMString; fn SetMin(&self, value: DOMString); fn MinLength(&self) -> i32; fn SetMinLength(&self, value: i32) -> Result<(), Error>; fn Multiple(&self) -> bool; fn SetMultiple(&self, value: bool); fn Name(&self) -> DOMString; fn SetName(&self, value: DOMString); fn Pattern(&self) -> DOMString; fn SetPattern(&self, value: DOMString); fn Placeholder(&self) -> DOMString; fn SetPlaceholder(&self, value: DOMString); fn ReadOnly(&self) -> bool; fn SetReadOnly(&self, value: bool); fn Required(&self) -> bool; fn SetRequired(&self, value: bool); fn Size(&self) -> u32; fn SetSize(&self, value: u32) -> Result<(), Error>; fn Src(&self) -> USVString; fn SetSrc(&self, value: USVString); fn Step(&self) -> DOMString; fn SetStep(&self, value: DOMString); fn Type(&self) -> DOMString; fn SetType(&self, value: DOMString); fn DefaultValue(&self) -> DOMString; fn SetDefaultValue(&self, value: DOMString); fn Value(&self) -> DOMString; fn SetValue(&self, value: DOMString, _can_gc: CanGc) -> Result<(), Error>; fn GetValueAsDate(&self, cx: JSContext) -> Option<NonNull<JSObject>>; fn SetValueAsDate( &self, cx: JSContext, value: *mut JSObject, _can_gc: CanGc, ) -> Result<(), Error>; fn ValueAsNumber(&self) -> f64; fn SetValueAsNumber(&self, value: f64, _can_gc: CanGc) -> Result<(), Error>; fn StepUp(&self, n: i32, _can_gc: CanGc) -> Result<(), Error>; fn StepDown(&self, n: i32, _can_gc: CanGc) -> Result<(), Error>; fn WillValidate(&self) -> bool; fn Validity(&self) -> Root<Dom<<D as DomTypes>::ValidityState>>; fn ValidationMessage(&self) -> DOMString; fn CheckValidity(&self, _can_gc: CanGc) -> bool; fn ReportValidity(&self, _can_gc: CanGc) -> bool; fn SetCustomValidity(&self, error: DOMString); fn GetLabels( &self, _can_gc: CanGc, ) -> Option<Root<Dom<<D as DomTypes>::NodeList>>>; fn Select(&self); fn GetSelectionStart(&self) -> Option<u32>; fn SetSelectionStart(&self, value: Option<u32>) -> Result<(), Error>; fn GetSelectionEnd(&self) -> Option<u32>; fn SetSelectionEnd(&self, value: Option<u32>) -> Result<(), Error>; fn GetSelectionDirection(&self) -> Option<DOMString>; fn SetSelectionDirection( &self, value: Option<DOMString>, ) -> Result<(), Error>; fn SetRangeText(&self, replacement: DOMString) -> Result<(), Error>; fn SetRangeText_( &self, replacement: DOMString, start: u32, end: u32, selectionMode: SelectionMode, ) -> Result<(), Error>; fn SetSelectionRange( &self, start: u32, end: u32, direction: Option<DOMString>, ) -> Result<(), Error>; fn SelectFiles(&self, path: Vec<DOMString>, _can_gc: CanGc);
}

Required Methods§

Source

fn Accept(&self) -> DOMString

Source

fn SetAccept(&self, value: DOMString)

Source

fn Alt(&self) -> DOMString

Source

fn SetAlt(&self, value: DOMString)

Source

fn DefaultChecked(&self) -> bool

Source

fn SetDefaultChecked(&self, value: bool)

Source

fn Checked(&self) -> bool

Source

fn SetChecked(&self, value: bool)

Source

fn DirName(&self) -> DOMString

Source

fn SetDirName(&self, value: DOMString)

Source

fn Disabled(&self) -> bool

Source

fn SetDisabled(&self, value: bool)

Source

fn GetForm(&self) -> Option<Root<Dom<<D as DomTypes>::HTMLFormElement>>>

Source

fn GetFiles(&self) -> Option<Root<Dom<<D as DomTypes>::FileList>>>

Source

fn SetFiles(&self, value: Option<&<D as DomTypes>::FileList>)

Source

fn FormAction(&self) -> DOMString

Source

fn SetFormAction(&self, value: DOMString)

Source

fn FormEnctype(&self) -> DOMString

Source

fn SetFormEnctype(&self, value: DOMString)

Source

fn FormMethod(&self) -> DOMString

Source

fn SetFormMethod(&self, value: DOMString)

Source

fn FormNoValidate(&self) -> bool

Source

fn SetFormNoValidate(&self, value: bool)

Source

fn FormTarget(&self) -> DOMString

Source

fn SetFormTarget(&self, value: DOMString)

Source

fn Indeterminate(&self) -> bool

Source

fn SetIndeterminate(&self, value: bool)

Source

fn GetList(&self) -> Option<Root<Dom<<D as DomTypes>::HTMLDataListElement>>>

Source

fn Max(&self) -> DOMString

Source

fn SetMax(&self, value: DOMString)

Source

fn MaxLength(&self) -> i32

Source

fn SetMaxLength(&self, value: i32) -> Result<(), Error>

Source

fn Min(&self) -> DOMString

Source

fn SetMin(&self, value: DOMString)

Source

fn MinLength(&self) -> i32

Source

fn SetMinLength(&self, value: i32) -> Result<(), Error>

Source

fn Multiple(&self) -> bool

Source

fn SetMultiple(&self, value: bool)

Source

fn Name(&self) -> DOMString

Source

fn SetName(&self, value: DOMString)

Source

fn Pattern(&self) -> DOMString

Source

fn SetPattern(&self, value: DOMString)

Source

fn Placeholder(&self) -> DOMString

Source

fn SetPlaceholder(&self, value: DOMString)

Source

fn ReadOnly(&self) -> bool

Source

fn SetReadOnly(&self, value: bool)

Source

fn Required(&self) -> bool

Source

fn SetRequired(&self, value: bool)

Source

fn Size(&self) -> u32

Source

fn SetSize(&self, value: u32) -> Result<(), Error>

Source

fn Src(&self) -> USVString

Source

fn SetSrc(&self, value: USVString)

Source

fn Step(&self) -> DOMString

Source

fn SetStep(&self, value: DOMString)

Source

fn Type(&self) -> DOMString

Source

fn SetType(&self, value: DOMString)

Source

fn DefaultValue(&self) -> DOMString

Source

fn SetDefaultValue(&self, value: DOMString)

Source

fn Value(&self) -> DOMString

Source

fn SetValue(&self, value: DOMString, _can_gc: CanGc) -> Result<(), Error>

Source

fn GetValueAsDate(&self, cx: JSContext) -> Option<NonNull<JSObject>>

Source

fn SetValueAsDate( &self, cx: JSContext, value: *mut JSObject, _can_gc: CanGc, ) -> Result<(), Error>

Source

fn ValueAsNumber(&self) -> f64

Source

fn SetValueAsNumber(&self, value: f64, _can_gc: CanGc) -> Result<(), Error>

Source

fn StepUp(&self, n: i32, _can_gc: CanGc) -> Result<(), Error>

Source

fn StepDown(&self, n: i32, _can_gc: CanGc) -> Result<(), Error>

Source

fn WillValidate(&self) -> bool

Source

fn Validity(&self) -> Root<Dom<<D as DomTypes>::ValidityState>>

Source

fn ValidationMessage(&self) -> DOMString

Source

fn CheckValidity(&self, _can_gc: CanGc) -> bool

Source

fn ReportValidity(&self, _can_gc: CanGc) -> bool

Source

fn SetCustomValidity(&self, error: DOMString)

Source

fn GetLabels( &self, _can_gc: CanGc, ) -> Option<Root<Dom<<D as DomTypes>::NodeList>>>

Source

fn Select(&self)

Source

fn GetSelectionStart(&self) -> Option<u32>

Source

fn SetSelectionStart(&self, value: Option<u32>) -> Result<(), Error>

Source

fn GetSelectionEnd(&self) -> Option<u32>

Source

fn SetSelectionEnd(&self, value: Option<u32>) -> Result<(), Error>

Source

fn GetSelectionDirection(&self) -> Option<DOMString>

Source

fn SetSelectionDirection(&self, value: Option<DOMString>) -> Result<(), Error>

Source

fn SetRangeText(&self, replacement: DOMString) -> Result<(), Error>

Source

fn SetRangeText_( &self, replacement: DOMString, start: u32, end: u32, selectionMode: SelectionMode, ) -> Result<(), Error>

Source

fn SetSelectionRange( &self, start: u32, end: u32, direction: Option<DOMString>, ) -> Result<(), Error>

Source

fn SelectFiles(&self, path: Vec<DOMString>, _can_gc: CanGc)

Implementors§