marmelab/react-admin

Add emptyText property to SelectArrayInput

Open

#10.454 aperta il 20 gen 2025

Vedi su GitHub
 (4 commenti) (0 reazioni) (0 assegnatari)TypeScript (5138 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (23.863 star)
Metriche merge PR
 (Merge medio 1g 13h) (18 PR mergiate in 30 g)

Descrizione

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

Guida contributor