Trait HTMLInputElementMethods
Source pub trait HTMLInputElementMethods<D>{
Show 90 methods
// Required methods
fn Accept(&self) -> DOMString;
fn SetAccept(&self, cx: &mut JSContext, value: DOMString);
fn Alpha(&self) -> bool;
fn SetAlpha(&self, cx: &mut JSContext, value: bool);
fn Alt(&self) -> DOMString;
fn SetAlt(&self, cx: &mut JSContext, value: DOMString);
fn DefaultChecked(&self) -> bool;
fn SetDefaultChecked(&self, cx: &mut JSContext, value: bool);
fn Checked(&self) -> bool;
fn SetChecked(&self, cx: &mut JSContext, value: bool);
fn ColorSpace(&self) -> DOMString;
fn SetColorSpace(&self, cx: &mut JSContext, value: DOMString);
fn DirName(&self) -> DOMString;
fn SetDirName(&self, cx: &mut JSContext, value: DOMString);
fn Disabled(&self) -> bool;
fn SetDisabled(&self, cx: &mut JSContext, 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,
cx: &mut JSContext,
value: Option<&<D as DomTypes>::FileList>,
);
fn FormAction(&self) -> DOMString;
fn SetFormAction(&self, cx: &mut JSContext, value: DOMString);
fn FormEnctype(&self) -> DOMString;
fn SetFormEnctype(&self, cx: &mut JSContext, value: DOMString);
fn FormMethod(&self) -> DOMString;
fn SetFormMethod(&self, cx: &mut JSContext, value: DOMString);
fn FormNoValidate(&self) -> bool;
fn SetFormNoValidate(&self, cx: &mut JSContext, value: bool);
fn FormTarget(&self) -> DOMString;
fn SetFormTarget(&self, cx: &mut JSContext, value: DOMString);
fn Indeterminate(&self) -> bool;
fn SetIndeterminate(&self, cx: &mut JSContext, value: bool);
fn GetList(&self) -> Option<Root<Dom<<D as DomTypes>::HTMLDataListElement>>>;
fn Max(&self) -> DOMString;
fn SetMax(&self, cx: &mut JSContext, value: DOMString);
fn MaxLength(&self) -> i32;
fn SetMaxLength(&self, cx: &mut JSContext, value: i32) -> Result<(), Error>;
fn Min(&self) -> DOMString;
fn SetMin(&self, cx: &mut JSContext, value: DOMString);
fn MinLength(&self) -> i32;
fn SetMinLength(&self, cx: &mut JSContext, value: i32) -> Result<(), Error>;
fn Multiple(&self) -> bool;
fn SetMultiple(&self, cx: &mut JSContext, value: bool);
fn Name(&self) -> DOMString;
fn SetName(&self, cx: &mut JSContext, value: DOMString);
fn Pattern(&self) -> DOMString;
fn SetPattern(&self, cx: &mut JSContext, value: DOMString);
fn Placeholder(&self) -> DOMString;
fn SetPlaceholder(&self, cx: &mut JSContext, value: DOMString);
fn ReadOnly(&self) -> bool;
fn SetReadOnly(&self, cx: &mut JSContext, value: bool);
fn Required(&self) -> bool;
fn SetRequired(&self, cx: &mut JSContext, value: bool);
fn Size(&self) -> u32;
fn SetSize(&self, cx: &mut JSContext, value: u32) -> Result<(), Error>;
fn Src(&self) -> USVString;
fn SetSrc(&self, cx: &mut JSContext, value: USVString);
fn Step(&self) -> DOMString;
fn SetStep(&self, cx: &mut JSContext, value: DOMString);
fn Type(&self) -> DOMString;
fn SetType(&self, cx: &mut JSContext, value: DOMString);
fn DefaultValue(&self) -> DOMString;
fn SetDefaultValue(&self, cx: &mut JSContext, value: DOMString);
fn Value(&self) -> DOMString;
fn SetValue(
&self,
cx: &mut JSContext,
value: DOMString,
) -> Result<(), Error>;
fn GetValueAsDate(&self, cx: JSContext) -> Option<NonNull<JSObject>>;
fn SetValueAsDate(
&self,
cx: &mut JSContext,
value: *mut JSObject,
) -> Result<(), Error>;
fn ValueAsNumber(&self) -> f64;
fn SetValueAsNumber(
&self,
cx: &mut JSContext,
value: f64,
) -> Result<(), Error>;
fn StepUp(&self, cx: &mut JSContext, n: i32) -> Result<(), Error>;
fn StepDown(&self, cx: &mut JSContext, n: i32) -> Result<(), Error>;
fn WillValidate(&self) -> bool;
fn Validity(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::ValidityState>>;
fn ValidationMessage(&self) -> DOMString;
fn CheckValidity(&self, cx: &mut JSContext) -> bool;
fn ReportValidity(&self, cx: &mut JSContext) -> bool;
fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString);
fn GetLabels(
&self,
cx: &mut JSContext,
) -> Option<Root<Dom<<D as DomTypes>::NodeList>>>;
fn Select(&self);
fn GetSelectionStart(&self) -> Option<u32>;
fn SetSelectionStart(
&self,
cx: &mut JSContext,
value: Option<u32>,
) -> Result<(), Error>;
fn GetSelectionEnd(&self) -> Option<u32>;
fn SetSelectionEnd(
&self,
cx: &mut JSContext,
value: Option<u32>,
) -> Result<(), Error>;
fn GetSelectionDirection(&self) -> Option<DOMString>;
fn SetSelectionDirection(
&self,
cx: &mut JSContext,
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>);
fn UseMap(&self) -> DOMString;
fn SetUseMap(&self, cx: &mut JSContext, value: DOMString);
}