marmelab / marmelab/react-admin
Add emptyText property to SelectArrayInput
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 26.9k
- Forks
- 5.5k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 19
Description
It would be nice to allow to specify what should be rendered inside a `SelectArrayInput` when no choice is selected. This feature is already present in the `SelectInput`.
For example:
```
const channelChoices = [
{id: "email", name: "Email"},
{id: "push", name: "Push Notification"},
];
All Channels} />
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the SelectArrayInput implementation and compare it with SelectInput, where emptyText already exists. Trace how the empty selection is rendered, then add equivalent support for the provided emptyText value and verify that SelectArrayInput displays it when no choice is selected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100