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

Required Methods§

Source

fn Length(&self) -> u32

Source

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

Source

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

Source

fn Remove(&self, index: i32)

Source

fn SelectedIndex(&self) -> i32

Source

fn SetSelectedIndex(&self, value: i32)

Source

fn IndexedGetter(&self, index: u32) -> Option<DomRoot<D::Element>>

Source

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

Source

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

Source

fn NamedGetter(&self, name: DOMString) -> Option<DomRoot<D::Element>>

Implementors§