pub trait HTMLOptionsCollectionMethods<D: DomTypes> {
    // Required methods
    fn Length(&self) -> u32;
    fn SetLength(&self, value: u32, _can_gc: CanGc);
    fn Add(
        &self,
        element: HTMLOptionElementOrHTMLOptGroupElement,
        before: Option<HTMLElementOrLong>,
    ) -> Result<(), Error>;
    fn Remove(&self, index: i32);
    fn SelectedIndex(&self) -> i32;
    fn SetSelectedIndex(&self, value: i32);
    fn IndexedGetter(&self, index: u32) -> Option<Root<Dom<Element>>>;
    fn IndexedSetter(
        &self,
        index: u32,
        option: Option<&HTMLOptionElement>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn SupportedPropertyNames(&self) -> Vec<DOMString>;
    fn NamedGetter(&self, name: DOMString) -> Option<Root<Dom<Element>>>;
}

Required Methods§

source

fn Length(&self) -> u32

source

fn SetLength(&self, value: u32, _can_gc: CanGc)

source

fn Add( &self, element: HTMLOptionElementOrHTMLOptGroupElement, before: Option<HTMLElementOrLong>, ) -> Result<(), Error>

source

fn Remove(&self, index: i32)

source

fn SelectedIndex(&self) -> i32

source

fn SetSelectedIndex(&self, value: i32)

source

fn IndexedGetter(&self, index: u32) -> Option<Root<Dom<Element>>>

source

fn IndexedSetter( &self, index: u32, option: Option<&HTMLOptionElement>, _can_gc: CanGc, ) -> Result<(), Error>

source

fn SupportedPropertyNames(&self) -> Vec<DOMString>

source

fn NamedGetter(&self, name: DOMString) -> Option<Root<Dom<Element>>>

Implementors§