pub trait HTMLInputElementMethods {
Show 83 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<HTMLFormElement>>>; fn GetFiles(&self) -> Option<Root<Dom<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<HTMLElement>>>; 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) -> Result<(), Error>; fn GetValueAsDate(&self, cx: SafeJSContext) -> Option<NonNull<JSObject>>; fn SetValueAsDate(
        &self,
        cx: SafeJSContext,
        value: *mut JSObject
    ) -> Result<(), Error>; fn ValueAsNumber(&self) -> f64; fn SetValueAsNumber(&self, value: f64) -> Result<(), Error>; fn StepUp(&self, n: i32) -> Result<(), Error>; fn StepDown(&self, n: i32) -> Result<(), Error>; fn WillValidate(&self) -> bool; fn Validity(&self) -> Root<Dom<ValidityState>>; fn ValidationMessage(&self) -> DOMString; fn CheckValidity(&self) -> bool; fn ReportValidity(&self) -> bool; fn SetCustomValidity(&self, error: DOMString); fn GetLabels(&self) -> Option<Root<Dom<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>);
}

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<HTMLFormElement>>>

source

fn GetFiles(&self) -> Option<Root<Dom<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<HTMLElement>>>

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) -> Result<(), Error>

source

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

source

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

source

fn ValueAsNumber(&self) -> f64

source

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

source

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

source

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

source

fn WillValidate(&self) -> bool

source

fn Validity(&self) -> Root<Dom<ValidityState>>

source

fn ValidationMessage(&self) -> DOMString

source

fn CheckValidity(&self) -> bool

source

fn ReportValidity(&self) -> bool

source

fn SetCustomValidity(&self, error: DOMString)

source

fn GetLabels(&self) -> Option<Root<Dom<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>)

Implementors§