-
Notifications
You must be signed in to change notification settings - Fork 15
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
Grouped Buttons with Dropdown #180
Comments
Unsure if this is helpful but I've been working in this codepen - I added some CSS and an "active" class to the users selected button so it acts more like combined radio buttons, giving the user a single https://codepen.io/mayagans/pen/dyoppZK I guess my vision is that the function
|
Also posted here: https://github.com/MayaGans/grp_btn_dropdown, I wrote a UI function that may be adaptable, but isn't as elegant as some of your map functions |
I'm all for adding this feature and thank you for sharing the codepen and repo. The current I think buttonGroupInput(
id = NULL,
choices = list(
"Choice 1",
"Choice 2",
"More choices" = list(
"Choice 3",
"Choice 4"
)
)
) The nested list would be converted into a dropdown menu with the label "More choices". |
I like your approach but tried implementing something here (my first input binding!) https://github.com/MayaGans/grp_btn_dropdown - it's still really janky and fragile so I look forward to seeing what you come up with! |
I did look through your code. All the right pieces are there. In this case I have to consider yonder’s core input api. I’ve tried to make an effort to standardize inputs, their arguments, and how values are interpreted. Even if I weren’t to directly use your code any discussion is invaluable. I noticed a couple things in your JavaScript code,
|
I’d also welcome a PR if you want to take a stab at updating yonder yourself. |
Thanks for your comments I'll try applying that! I'm looking at your code now to learn how to write an updateButtonAndMenu function [so the user could update the buttons from the server side] still have a lot to learn before I could integrate this with yonder though 😊thanks again for your help and encouragement! |
It’s the least I could do. Let me know if you have any questions. I’m wrapping up the first version of cascadess and then I’ll turn my attention back to yonder. |
Based on tweet - a feature request for grouped buttons with a dropdown as seen on Bootstrap page
Thank you!!!
The text was updated successfully, but these errors were encountered: