marmelab/react-admin

Add emptyText property to SelectArrayInput

开放

#10,454 创建于 2025年1月20日

 (5 条评论) (0 个反应) (0 位负责人)TypeScript (5,138 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (23,863 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南