pub(crate) trait HTMLTextAreaElementMethods<D>where
D: DomTypes,{
Show 46 methods
// Required methods
fn Cols(&self) -> u32;
fn SetCols(&self, cx: &mut JSContext, value: u32) -> Result<(), Error>;
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 MaxLength(&self) -> i32;
fn SetMaxLength(&self, cx: &mut JSContext, value: i32) -> Result<(), Error>;
fn MinLength(&self) -> i32;
fn SetMinLength(&self, cx: &mut JSContext, value: i32) -> Result<(), Error>;
fn Name(&self) -> DOMString;
fn SetName(&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 Rows(&self) -> u32;
fn SetRows(&self, cx: &mut JSContext, value: u32) -> Result<(), Error>;
fn Wrap(&self) -> DOMString;
fn SetWrap(&self, cx: &mut JSContext, value: DOMString);
fn Type(&self) -> 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);
fn TextLength(&self) -> u32;
fn WillValidate(&self, cx: &NoGC) -> bool;
fn Validity(
&self,
cx: &mut JSContext,
) -> Root<Dom<<D as DomTypes>::ValidityState>>;
fn ValidationMessage(&self, cx: &mut JSContext) -> DOMString;
fn CheckValidity(&self, cx: &mut JSContext) -> bool;
fn ReportValidity(&self, cx: &mut JSContext) -> bool;
fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString);
fn Labels(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::NodeList>>;
fn Select(&self, cx: &mut JSContext);
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,
cx: &mut JSContext,
replacement: DOMString,
) -> Result<(), Error>;
fn SetRangeText_(
&self,
cx: &mut JSContext,
replacement: DOMString,
start: u32,
end: u32,
selectionMode: SelectionMode,
) -> Result<(), Error>;
fn SetSelectionRange(
&self,
start: u32,
end: u32,
direction: Option<DOMString>,
) -> Result<(), Error>;
}Required Methods§
fn Cols(&self) -> u32
fn SetCols(&self, cx: &mut JSContext, value: u32) -> Result<(), Error>
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 MaxLength(&self) -> i32
fn SetMaxLength(&self, cx: &mut JSContext, value: i32) -> Result<(), Error>
fn MinLength(&self) -> i32
fn SetMinLength(&self, cx: &mut JSContext, value: i32) -> Result<(), Error>
fn Name(&self) -> DOMString
fn SetName(&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 Rows(&self) -> u32
fn SetRows(&self, cx: &mut JSContext, value: u32) -> Result<(), Error>
fn Wrap(&self) -> DOMString
fn SetWrap(&self, cx: &mut JSContext, value: DOMString)
fn Type(&self) -> 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)
fn TextLength(&self) -> u32
fn WillValidate(&self, cx: &NoGC) -> bool
fn Validity( &self, cx: &mut JSContext, ) -> Root<Dom<<D as DomTypes>::ValidityState>>
fn ValidationMessage(&self, cx: &mut JSContext) -> DOMString
fn CheckValidity(&self, cx: &mut JSContext) -> bool
fn ReportValidity(&self, cx: &mut JSContext) -> bool
fn SetCustomValidity(&self, cx: &mut JSContext, error: DOMString)
fn Labels(&self, cx: &mut JSContext) -> Root<Dom<<D as DomTypes>::NodeList>>
fn Select(&self, cx: &mut JSContext)
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, cx: &mut JSContext, replacement: DOMString, ) -> Result<(), Error>
fn SetRangeText_( &self, cx: &mut JSContext, replacement: DOMString, start: u32, end: u32, selectionMode: SelectionMode, ) -> Result<(), Error>
fn SetSelectionRange( &self, start: u32, end: u32, direction: Option<DOMString>, ) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".