marmelab/react-admin

Add emptyText property to SelectArrayInput

オープン

#10,454 opened on 2025/01/20

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)TypeScript (5,138 件のフォーク)batch import
enhancementgood first issue

Repository metrics

Stars
 (23,863 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド