[][src]Struct moxie_dom::elements::forms::SelectBuilder

#[must_use = "needs to be built"]pub struct SelectBuilder { /* fields omitted */ }

The HTML <select> element represents a control that provides a menu of options.

A type for initializing the element's attributes before calling build.

Implementations

impl SelectBuilder[src]

pub fn build(self) -> Select[src]

Initialize the element with all of the attributes so far.

impl SelectBuilder[src]

pub fn autocomplete(self, to_set: impl ToString) -> Self[src]

A DOMString providing a hint for a user agent's autocomplete feature.

pub fn autofocus(self, to_set: bool) -> Self[src]

Lets you specify that a form control should have input focus when the page loads. Only one form element in a document can have the autofocus attribute.

pub fn disabled(self, to_set: bool) -> Self[src]

Indicates that the user cannot interact with the control. If this attribute is not specified, the control inherits its setting from the containing element, for example

; if there is no containing element with the disabled attribute set, then the control is enabled.

pub fn form(self, to_set: impl ToString) -> Self[src]

The

element to associate the is associated with its ancestor element, if any.)

This attribute lets you associate