newOptions
Optional. Allows end users to add new options into the data collection of Combobox
newOptions?: boolean;
Default value: false
Example
const combobox = new dhx.Combobox("combo_container", {
multiselection: true,
newOptions: true
});
Related sample: Combobox. Multiselection, add new options (free text), select all button
The end user can add a new item into the data collection in two ways:
- by entering a new value into the input and pressing "Enter"
- by entering a new value into the input and selecting the appeared Create "newValue" option in the drop-down list
Change log:
added in v7.3