Autocomplete
Basic
Editable
Disabled
Creatable
It is possible to create a new options when there is no matching with the entered value.
To activate this feature, set the canCreate
props to true
. The created value will then be passed to the onCreate
callback.
Clearable
Give the possibility to empty the value by setting the disableClearable
props at false
.
Editable
Disabled
Multiple
Allow the user to select more than one value by setting the multiple
props at true
.
Editable
Français
Disabled
Français
Read only
Props
Name | Type | Required | Default | Description |
---|---|---|---|---|
canCreate | bool | No | false | If true , a Create "..." option appears when no option matches the current value. |
disableClearable | bool | No | true | If true , the input can't be cleared. |
multiple | bool | No | false | If true , the user can select multiple values. |
isResetOnEscape | bool | No | false | If true , "Escape" reset value |
onCreate | func | No | Callback fired when a new option is created with canCreate set to true . It receives three arguments: the new value, the current row data and a callback to update the whole row data. | |
optionList | func | array | No | [] | Deprecated. Use the options prop. |
options | func | array | No | [] | Function called or array used to populate the suggestions list. |