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§

source

fn Disabled(&self) -> bool

source

fn SetDisabled(&self, value: bool)

source

fn GetForm(&self) -> Option<Root<Dom<HTMLFormElement>>>

source

fn Label(&self) -> DOMString

source

fn SetLabel(&self, value: DOMString)

source

fn DefaultSelected(&self) -> bool

source

fn SetDefaultSelected(&self, value: bool)

source

fn Selected(&self) -> bool

source

fn SetSelected(&self, value: bool)

source

fn Value(&self) -> DOMString

source

fn SetValue(&self, value: DOMString)

source

fn Text(&self) -> DOMString

source

fn SetText(&self, value: DOMString, _can_gc: CanGc)

source

fn Index(&self) -> i32

source

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.

Implementors§