You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/SelectInput.md
+2
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,9 @@ import { SelectInput } from 'react-admin';
28
28
|`choices`| Required |`Object[]`| - | List of items to show as options |
29
29
|`create`| Optional |`Element`|`-`| A React Element to render when users want to create a new choice |
30
30
|`createLabel`| Optional |`string`|`ra.action.create`| The label for the menu item allowing users to create a new choice. Used when the filter is empty |
31
+
|`disableValue`| Optional |`string`| 'disabled' | The custom field name used in `choices` to disable some choices |
31
32
|`emptyText`| Optional |`string`| '' | The text to display for the empty option |
33
+
|`emptyValue`| Optional |`any`| '' | The value to use for the empty option |
32
34
|`onCreate`| Optional |`Function`|`-`| A function called with the current filter value when users choose to create a new choice. |
33
35
|`options`| Optional |`Object`| - | Props to pass to the underlying `<SelectInput>` element |
34
36
|`optionText`| Optional |`string`|`Function`|`name`| Field name of record to display in the suggestion item or function which accepts the current record as argument (`record => {string}`) |
0 commit comments