OptionalautoClose when date is selected
OptionalautocompleteThe autocomplete property sets or returns the value of the autocomplete attribute in a text field. When autocomplete is on, the browser automatically complete values based on values that the user has entered before.
OptionalautofocusWhen true, add the autofocus attribute to the input field.
OptionalcanShow a clear button (small 'x') to clear the input value. Only valid for TextInput.
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.
OptionalcolsNumber of cols of a textarea
OptionaldataWill replace the helperText, if any, when the input is invalid.
OptionaldataWill replace the helperText, if any, when the input is valid.
OptionaldateLegacy: Date label (use label instead)
OptionaldateEnable date range selection mode for selecting start and end dates
OptionaldefaultThe initial date to view when first opened
OptionaldefaultInitial value for uncontrolled mode. Only used when value and oninput are not provided.
In uncontrolled mode, the component manages its own internal state.
OptionaldisabledSets the input field to disabled.
OptionaldisableCustom function to disable specific days
OptionaldisableDisable weekends
OptionaldisplayLegacy: Display format (use format instead)
OptionalfirstFirst day of week (0: Sunday, 1: Monday etc)
OptionalformatDate format attribute (alternative to format property)
OptionalheightFor vertical range inputs: height of the slider
OptionalhelperAdd a description underneath the input field.
Optionali18nInternationalization
OptionaliconUses Materialize icons as a prefix or postfix.
OptionalidOptional ID.
OptionalinitialInitial end date for range selection
OptionalinitialInitial start date for range selection
OptionalisIf true, add a mandatory * after the label (if any), and add the required and aria-required attributes to the input element.
OptionalkeyUnique key for use of the element in an array.
OptionallabelOptional label.
OptionalmaxWhen input type is a number, optionally specify the maximum value.
OptionalmaxThe latest date that can be selected
OptionalmaxMaximum number of days between start and end dates
OptionalmaxWhen input type is a text or text area, optionally specify the maximum length.
OptionalmaxFor range inputs with minmax: initial maximum value
OptionalminWhen input type is a number, optionally specify the minimum value.
OptionalminThe earliest date that can be selected
OptionalminMinimum number of days between start and end dates
OptionalminWhen input type is a text or text area, optionally specify the minimum length.
OptionalminmaxFor range inputs: enable dual thumb (min/max) range selection
OptionalminFor range inputs with minmax: initial minimum value
OptionalnewIf true, break to a new row
OptionalonblurInvoked when the element looses focus
OptionalonchangeInvoked when the input looses focus. For range sliders with minmax, second parameter is maxValue.
OptionalonCallback when picker is closed
OptionaloninputInvoked when the value changes (immediate feedback). For range sliders with minmax, second parameter is maxValue.
OptionalonkeydownKey down event
OptionalonkeypressKey press event
OptionalonkeyupKey up event
OptionalonCallback when picker is opened
OptionalonCallback when date is selected (single date or range start/end)
OptionalparseCustom parse function
OptionalpatternThe pattern property sets or returns the value of the pattern attribute of a text field. The pattern attribute specifies a regular expression that the text field's value is checked against.
OptionalplaceholderAdd a a placeholder to the input field.
OptionalreadThe readOnly property sets or returns whether a text field is read-only, or not. A read-only field cannot be modified. However, a user can tab to it, highlight it, and copy the text from it.
OptionalrequiredAdd the required and aria-required attributes to the input element
OptionalrowsNumber of rows of a textarea
OptionalsetMake the defaultDate the initial selected value
OptionalshowShow clear button
OptionalshowShow week numbers
OptionalstyleOptional style information.
OptionaltooltipFor range inputs with valueDisplay: position of value tooltips
OptionalvalidateWhen returning true or an empty string, clear the custom validity (= valid). When returning false, set the custom validity message to a default string string. When returning a non-empty string, set the custom validity message to this string.
OptionalvalueCurrent value of the input field. If provided along with oninput, the component operates in controlled mode
where the parent manages the state. The parent must update this value in response to oninput callbacks.
OptionalvalueFor range inputs: control value display behavior. 'auto' shows on drag, 'always' shows always, 'none' never shows
OptionalverticalFor range inputs: render vertically instead of horizontally
OptionalweekWeek numbering system: 'iso' (ISO 8601) or 'local' (local convention)
OptionalyearrangeYear range attribute (alternative to yearRange property)
OptionalyearNumber of years either side, or array of upper/lower range
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.