Free Entry Mixin
FreeEntryMixin
Overview
What a widget gains from FreeEntryMixin.
Declared so mixins layered above it (SelectSearchMixin) can say they depend on this being below them, rather than reaching for undeclared properties.
Used by
This mixin is applied by the following widgets.
Properties
| Name | Description | Type | Default |
|---|---|---|---|
allowFreeEntries |
Allow values that are not in the options |
boolean
|
- |
TAG_BREAK |
These characters end a free entry |
string[]
|
- |
Methods
| Name | Description | Arguments |
|---|---|---|
createFreeEntry()
|
Turn some text into an option and add it to the value. Returns false if the text was rejected. |
text: string
|
validateFreeEntry()
|
Would createFreeEntry() accept this text? Runs the widget’s validators against it. |
text: string
|