OptionalcheckedCurrently selected item id for controlled mode. If provided along with onchange, the component operates in controlled mode
where the parent manages the state. The parent must update this value in response to onchange callbacks.
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionalclassThe class name(s) for this virtual element, as a space-separated list.
OptionaldefaultDefault selected item id for uncontrolled mode. Only used when checkedId and onchange are not provided.
The component will manage its own internal state in uncontrolled mode.
OptionaldisabledIf true, disable the selection
OptionalhelperAdd a description underneath the input field.
OptionaliconUses Materialize icons as a prefix or postfix.
OptionalidOptional id of the dropdown element
Item array to show in the dropdown. If the value is not supplied, uses he name.
OptionalkeyA key to optionally associate with this element.
OptionallabelOptional label when no item is selected
OptionalonchangeWhen a value or name is selected. Optional for uncontrolled mode.
OptionalonbeforeremoveThe onbeforeremove hook is called before a DOM element is detached from the document. If a Promise is returned, Mithril only detaches the DOM element after the promise completes.
OptionalonbeforeupdateThe onbeforeupdate hook is called before a vnode is diffed in a update.
OptionaloncreateThe oncreate hook is called after a DOM element is created and attached to the document.
OptionaloninitThe oninit hook is called before a vnode is touched by the virtual DOM engine.
OptionalonremoveThe onremove hook is called before a DOM element is removed from the document.
OptionalonupdateThe onupdate hook is called after a DOM element is updated, while attached to the document.
Any other virtual element properties, including attributes and event handlers.