Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added subDisplayKey option #100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ialmoqren
Copy link

To make it easier to use localized arrays

To make it easier to use localized arrays
@renrizzolo
Copy link
Owner

nice, thanks for this.
I'm thinking it might make more sense for the prop to be a function that receives the item and is expected to return a string, so the translation could be retrieved from elsewhere (for example).
{subDisplayKey ? subDisplayKey(item) : item[displayKey]}

I guess it would need to be called something more appropriate like customLabelRender though.

@github-actions
Copy link

github-actions bot commented Feb 3, 2022

This PR is stale because it has been open 45 days with no activity.

@github-actions github-actions bot added the Stale label Feb 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants