Trait script::dom::bindings::codegen::Bindings::HTMLOptionElementBinding::HTMLOptionElement_Binding::HTMLOptionElementMethods
source · pub trait HTMLOptionElementMethods<D: DomTypes> {
Show 15 methods
// Required methods
fn Disabled(&self) -> bool;
fn SetDisabled(&self, value: bool);
fn GetForm(&self) -> Option<Root<Dom<HTMLFormElement>>>;
fn Label(&self) -> DOMString;
fn SetLabel(&self, value: DOMString);
fn DefaultSelected(&self) -> bool;
fn SetDefaultSelected(&self, value: bool);
fn Selected(&self) -> bool;
fn SetSelected(&self, value: bool);
fn Value(&self) -> DOMString;
fn SetValue(&self, value: DOMString);
fn Text(&self) -> DOMString;
fn SetText(&self, value: DOMString, _can_gc: CanGc);
fn Index(&self) -> i32;
fn Option(
global: &Window,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
text: DOMString,
value: Option<DOMString>,
defaultSelected: bool,
selected: bool,
) -> Result<Root<Dom<HTMLOptionElement>>, Error>;
}
Required Methods§
fn Disabled(&self) -> bool
fn SetDisabled(&self, value: bool)
fn GetForm(&self) -> Option<Root<Dom<HTMLFormElement>>>
fn Label(&self) -> DOMString
fn SetLabel(&self, value: DOMString)
fn DefaultSelected(&self) -> bool
fn SetDefaultSelected(&self, value: bool)
fn Selected(&self) -> bool
fn SetSelected(&self, value: bool)
fn Value(&self) -> DOMString
fn SetValue(&self, value: DOMString)
fn Text(&self) -> DOMString
fn SetText(&self, value: DOMString, _can_gc: CanGc)
fn Index(&self) -> i32
fn Option( global: &Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, text: DOMString, value: Option<DOMString>, defaultSelected: bool, selected: bool, ) -> Result<Root<Dom<HTMLOptionElement>>, Error>
Object Safety§
This trait is not object safe.