Multiselect.createOption method
Multiselect › createOption
Unofficial
Create a new option for the multiselect.Signature:
createOption(this: Multiselect, value: string): string | undefinedParameters:
| Parameter | Type | Description |
|---|---|---|
| this | Multiselect | |
| value | string | the value of the option. |
Returns: string | undefined — the created option or undefined if the value is not valid.