marmelab/react-admin

Add emptyText property to SelectArrayInput

Open

#10 454 ouverte le 20 janv. 2025

Voir sur GitHub
 (4 commentaires) (0 réactions) (0 assignés)TypeScript (5 138 forks)batch import
enhancementgood first issue

Métriques du dépôt

Stars
 (23 863 stars)
Métriques de merge PR
 (Merge moyen 1j 13h) (18 PRs mergées en 30 j)

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>} />

Guide contributeur