You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A side note about the last change: the emptyText was reported as not used for the ArrayField. However, this option is still present on the TS definition. Is it a wanted behavior?
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
This request is a follow up of #6179.
Using the
empty
field of theDatagrid
component is a solution. however, this field require only a react component.This may be useful for some cases, but it is completely overkill if you just want to show a "It is empty" text just like other simple fields.
We may also use
empty={<span>It is empty</span>}
, however, we loose all the react-admin design of the Fields (Typography
with specific config).Describe the solution you'd like
Having a way to just put a
emptyText
props on aArrayField
, making the configuration much simpler:Or, if the
ArrayField
usage is a problem, maybe on theDatagrid
component itself (and any of the usable children):Describe alternatives you've considered
The only solution I found to get the exact same render with a minimal "code copy/paste" impact is this:
Additional context
A side note about the last change: the
emptyText
was reported as not used for the ArrayField. However, this option is still present on the TS definition. Is it a wanted behavior?The text was updated successfully, but these errors were encountered: