-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Description
Is your feature request related to a problem? Please describe.
It's hard to customize ChipField label, e.g. use firstName + lastName instead of single field value.
Currently, it's possible to create custom component using Chip from material-ui, style it (add margins, like ChipField does).
We can make it way easier 🚀
Describe the solution you'd like
Add formatLabel function prop. It will accept record as argument and return label.
<ChipField formatLabel={record => `${record.firstName} ${record.lastName}`} />Describe alternatives you've considered
There's an alternative, described above, but it's an overkill for such basic use case.
Additional context
I'd like to hear from you guys what do you think about that.
And, of course, I can submit a PR.
floweb, amustaine, kopax, sulydeni, florianjr and 2 more