Optional
checkboxOptional CSS that is added to the input checkbox, e.g. if you add col s4, the items will be put inline
Optional
checkedCurrently selected 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.
Optional
classThe class name(s) for this virtual element, as a space-separated list.
Optional
classThe class name(s) for this virtual element, as a space-separated list.
Optional
defaultDefault selected id for uncontrolled mode. Only used when checkedId
and onchange
are not provided.
The component will manage its own internal state in uncontrolled mode.
Optional
descriptionOptional description
Optional
disabledDisable the button
Optional
idElement ID
Optional
isIf true, add a mandatory '*' after the label
Optional
keyA key to optionally associate with this element.
Optional
labelOptional title or label
Optional
layoutLayout for the options: 'vertical' (default) or 'horizontal'
Optional
newIf true, start on a new row
Optional
onchangeEvent handler that is called when an option is changed. Optional for uncontrolled mode.
The options that you have
Optional
onbeforeremoveThe 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.
Optional
onbeforeupdateThe onbeforeupdate hook is called before a vnode is diffed in a update.
Optional
oncreateThe oncreate hook is called after a DOM element is created and attached to the document.
Optional
oninitThe oninit hook is called before a vnode is touched by the virtual DOM engine.
Optional
onremoveThe onremove hook is called before a DOM element is removed from the document.
Optional
onupdateThe 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.