OptionalallowIf true then the input allows creating new values from the text field. Only used when allowInput is true. Defaults to false.
OptionalallowIf true then a text field is shown for the user to search for values or enter new ones. Defaults to false.
OptionalallowIf true then null is a valid input value. Defaults to false.
OptionalbindingA binding to use with this Element.
OptionalclassThe class attribute of this Element's HTMLElement.
OptionalcreateA function to be executed when the user selects to create a new value. The function takes the new value as a parameter.
OptionalcreateThe placeholder text to show when creating a new value. Used when allowInput and allowCreate are both true.
OptionaldefaultDefault value for the input.
OptionaldisabledAll the option values that should be disabled. The keys of the object are the values of the options and the values are the text to show when the option is disabled.
OptionaldomThe HTMLElement to create this Element with. If not provided this Element will create one.
OptionalenabledSets whether it is possible to interact with this Element and its children.
OptionalerrorSets whether the Element is in an error state.
OptionalfallbackThe order that the options should be checked in to find a valid fallback option that isn't included in the disabledOptions object.
OptionalheightSets the initial height of the Element.
OptionalhiddenSets whether this Element is hidden. Defaults to false.
OptionalidThe id attribute of this Element's HTMLElement.
OptionalignoreIf true, this Element will ignore its parent's enabled value when determining whether this element is enabled. Defaults to false.
OptionalinvalidAn array of values against which new values are checked before they are created. If a value is in the array it will not be created.
OptionalisSets whether this Element is at the root of the hierarchy.
OptionallinkLinks the observer attribute at the path location in the given observer to this Element.
OptionalmultiIf true then the input value becomes an array allowing the selection of multiple options. Defaults to false.
OptionalonIf provided and the Element is changeable, this function will be called each time the element value is changed.
OptionalonIf provided and the Element is clickable, this function will be called each time the element is clicked.
OptionalonIf provided and the Element is removable, this function will be called each time the element is removed.
OptionalonIf provided, this function will be called each time an option is selected.
OptionaloptionsThe dropdown options of the input. Contains an array of objects with the following format {v: Any, t: String} where v is the value and t is the text of the option.
OptionaloptionsUsed to map the options.
OptionalparentSets the parent Element.
OptionalplaceholderSets the placeholder label that appears on the right of the input.
OptionalprefixText to display in the SelectInput before the selected option.
OptionalreadWhether this Element is read only or not. Defaults to false.
OptionalrenderIf true each input will flash on changes.
OptionalstyleSets an initial value for Element.dom.style.
OptionaltabSets the tabIndex of the Element.
OptionaltypeThe type of each value. Can be one of 'string', 'number' or 'boolean'. Defaults to 'string'.
OptionalvalueSets the value of the Element.
OptionalvaluesSets multiple values to the Element. It is up to the Element to determine how to display them.
OptionalwidthSets the initial width of the Element.
The arguments for the SelectInput constructor.