marmelab/react-admin
Ver no GitHubAdd emptyText property to SelectArrayInput
Open
#10.454 aberto em 20 de jan. de 2025
enhancementgood first issue
Métricas do repositório
- Stars
- (23.863 stars)
- Métricas de merge de PR
- (Mesclagem média 1d 13h) (18 fundiu PRs em 30d)
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"},
];
<SelectArrayInput source="channels" choices={channelChoices} emptyText={<i>All Channels</i>} />