Provide a mechanism/documentation to add new items to the vaadin-combo-box.
Vaadin combo box should provide mechanism to add items e.g.
https://demo.vaadin.com/sampler/#ui/data-input/multiple-value/combo-box
Cannot add new items.
/**
* If true
, the user can input a value that is not present in the items list.
* value
property will be set to the input value in this case.
* Also, when value
is set programmatically, the input value will be set
* to reflect that value.
*/
allowCustomValue: {
type: Boolean,
value: false
},
Found the above snippet in vaadin-combo-box-mixin.html
. :)
In code do:
<vaadin-combo-box allow-custom-value ...
Can this be mentioned in the docs as well here.
It is mentioned, actually. See the "Allow Custom Values" demo here. Is it clear enough for you, or maybe you suggest making a slightly more verbose description?
It would be better if its made more verbose. 'Custom Values' to me is a bit misleading. It would be good if 'editable' can also be use to describe it.
To me Custom Values
sounds better than editable
. Editable sounds like you could edit the combo-box items (add/update/remove them) where as custom value is used only for one custom value.
Most helpful comment
To me
Custom Values
sounds better thaneditable
. Editable sounds like you could edit the combo-box items (add/update/remove them) where as custom value is used only for one custom value.