Skip to content

Multiselect.createOption method

Multiselect › createOption

Unofficial

Create a new option for the multiselect.

Signature:

createOption(this: Multiselect, value: string): string | undefined

Parameters:

Parameter Type Description
this Multiselect
value string the value of the option.

Returns: string | undefinedthe created option or undefined if the value is not valid.