pub(crate) trait HTMLInputElementMethods<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<DomRoot<D::HTMLFormElement>>; fn GetFiles(&self) -> Option<DomRoot<D::FileList>>; fn SetFiles(&self, value: Option<&D::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<DomRoot<D::HTMLDataListElement>>; fn Max(&self) -> DOMString; fn SetMax(&self, value: DOMString); fn MaxLength(&self) -> i32; fn SetMaxLength(&self, value: i32) -> ErrorResult; fn Min(&self) -> DOMString; fn SetMin(&self, value: DOMString); fn MinLength(&self) -> i32; fn SetMinLength(&self, value: i32) -> ErrorResult; 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) -> ErrorResult; 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) -> ErrorResult; fn GetValueAsDate(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>; fn SetValueAsDate( &self, cx: SafeJSContext, value: *mut JSObject, _can_gc: CanGc, ) -> ErrorResult; fn ValueAsNumber(&self) -> f64; fn SetValueAsNumber(&self, value: f64, _can_gc: CanGc) -> ErrorResult; fn StepUp(&self, n: i32, _can_gc: CanGc) -> Fallible<()>; fn StepDown(&self, n: i32, _can_gc: CanGc) -> Fallible<()>; fn WillValidate(&self) -> bool; fn Validity(&self) -> DomRoot<D::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) -> Option<DomRoot<D::NodeList>>; fn Select(&self); fn GetSelectionStart(&self) -> Option<u32>; fn SetSelectionStart(&self, value: Option<u32>) -> ErrorResult; fn GetSelectionEnd(&self) -> Option<u32>; fn SetSelectionEnd(&self, value: Option<u32>) -> ErrorResult; fn GetSelectionDirection(&self) -> Option<DOMString>; fn SetSelectionDirection(&self, value: Option<DOMString>) -> ErrorResult; fn SetRangeText(&self, replacement: DOMString) -> Fallible<()>; fn SetRangeText_( &self, replacement: DOMString, start: u32, end: u32, selectionMode: SelectionMode, ) -> Fallible<()>; fn SetSelectionRange( &self, start: u32, end: u32, direction: Option<DOMString>, ) -> Fallible<()>; 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<DomRoot<D::HTMLFormElement>>

Source

fn GetFiles(&self) -> Option<DomRoot<D::FileList>>

Source

fn SetFiles(&self, value: Option<&D::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<DomRoot<D::HTMLDataListElement>>

Source

fn Max(&self) -> DOMString

Source

fn SetMax(&self, value: DOMString)

Source

fn MaxLength(&self) -> i32

Source

fn SetMaxLength(&self, value: i32) -> ErrorResult

Source

fn Min(&self) -> DOMString

Source

fn SetMin(&self, value: DOMString)

Source

fn MinLength(&self) -> i32

Source

fn SetMinLength(&self, value: i32) -> ErrorResult

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) -> ErrorResult

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) -> ErrorResult

Source

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

Source

fn SetValueAsDate( &self, cx: SafeJSContext, value: *mut JSObject, _can_gc: CanGc, ) -> ErrorResult

Source

fn ValueAsNumber(&self) -> f64

Source

fn SetValueAsNumber(&self, value: f64, _can_gc: CanGc) -> ErrorResult

Source

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

Source

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

Source

fn WillValidate(&self) -> bool

Source

fn Validity(&self) -> DomRoot<D::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) -> Option<DomRoot<D::NodeList>>

Source

fn Select(&self)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Implementors§