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

Custom RowItem & RowSubItem Components #112

Closed
zlanich opened this issue May 20, 2019 · 7 comments
Closed

Custom RowItem & RowSubItem Components #112

zlanich opened this issue May 20, 2019 · 7 comments
Labels

Comments

@zlanich
Copy link

zlanich commented May 20, 2019

Hey there! I'd like to use your multi-select, but one immediate limitation I'm seeing is no ability to provide a custom component for the RowItem or RowSubItem (especially). If we were to create something like a Country Picker using this, we'd need to show the country flag (for example), but it looks like it currently only supports Text.

Would you be willing to add 2 methods for these, and pass relevant props into them?

@renrizzolo
Copy link
Owner

Yes, that can be added.
You can use the iconKey prop if you have icons in your items.

@zlanich
Copy link
Author

zlanich commented May 21, 2019

@renrizzolo Yea, I did see the iconKey. That would work for a country picker. It was probably a bad example. lol. I'm also thinking of other needs beyond Text.

@FadiAboMsalam
Copy link

@renrizzolo in my case i need to show list of subservices and their price
for example
service1 - price$
but i can only render one text and can't seem to have the ability to put the service on the start of row and price at end of row to achieve something like (justifyContent:"space-between")
any help is appreciated

@OrLavy
Copy link

OrLavy commented Jun 19, 2019

Also encountered this problem,
Opened a PR at #117

added a 'customSubItemContentRenderer' prop that lets the developer keep the item selection logic while also replacing the RowSubItem content with your own one.

@rafaelgilead
Copy link

iconKey not working for me.
I try the 3 ways.

@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the Stale label Jan 25, 2022
@github-actions
Copy link

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants