Skip to content

Commit bfa79a5

Browse files
authored
Merge pull request #7566 from smeng9/selectinput
[doc] fix select input missing props in documentation
2 parents b9b108c + f66f75d commit bfa79a5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/SelectInput.md

+2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ import { SelectInput } from 'react-admin';
2828
| `choices` | Required | `Object[]` | - | List of items to show as options |
2929
| `create` | Optional | `Element` | `-` | A React Element to render when users want to create a new choice |
3030
| `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 |
3132
| `emptyText` | Optional | `string` | '' | The text to display for the empty option |
33+
| `emptyValue` | Optional | `any` | '' | The value to use for the empty option |
3234
| `onCreate` | Optional | `Function` | `-` | A function called with the current filter value when users choose to create a new choice. |
3335
| `options` | Optional | `Object` | - | Props to pass to the underlying `<SelectInput>` element |
3436
| `optionText` | Optional | `string` &#124; `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

Comments
 (0)