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

Add button to end of list for "View All" elements, or any other action really #815

Open
tapizquent opened this issue Sep 11, 2023 · 1 comment

Comments

@tapizquent
Copy link

Is your feature request related to a problem? Please describe.
Is there a way to add a button to the end of the Dropdown menu for other actions? I tried playing with the renderMenu but it assumes the button is an option and fails for LabelKey. Also, doesn't ever think it's empty since a button is in the list. I want to make sure it still says "No results" with a view more button.

Describe the solution you'd like
Add button at the button of Menu dropdown

How is this solution useful to others?
Allow for custom action on button press other than selecting an option

Describe alternatives you've considered
Used renderMenu, also tried custom js to add dynamically onFocus, or onMenuShow but on luck, since the menu refreshes when updating.

@ericgio
Copy link
Owner

ericgio commented Sep 11, 2023

@tapizquent can you please be more specific about the action you're trying to apply? Do you have a screenshot of the design? You can definitely apply alternate actions; one common behavior I've done is to navigate when a user clicks on the option. You can do that by applying your own onClick action to the menu item.

It's easy enough to address this use case via mouse click. Where it gets tricky is making the interaction accessible via keyboard as well.

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

No branches or pull requests

2 participants