Nested DropdownMenus, Difference Between Raw HTML and Dash Library #31973
Unanswered
androidrhodium
asked this question in
General
Replies: 1 comment 1 reply
-
Converted this to a discussion as this is a how-to question outside the core Bootstrap project. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I used bootstrap components from the dash_bootsrap_components library to quickly prototype a nav menu in a dash app I'm running. In this nav menu, I did a sort of waterfall of nested dropdown menu items and it worked great! I went to build this same menu using a .asp file for production and found that nesting the dropdown menus didn't work the same. After some quick googling and stack overflowing I found some older workarounds that people have found and used but I'm trying to keep my production implementation as simple as possible with no custom bits. I also tried copying one of the navbar's nested dropdowns from the Dash app page's HTML along with including all of the javascript and CSS files to no avail. Most likely because the raw javascript from the Dash app's HTML has errors when included separately.
I've noted that the drop-down menus from the Dash library don't use a button to toggle the actual menu item whereas the raw HTML bootstrap does use a button within the dropdown class to show the dropdown menu.
The following is just snippets from the Bootstrap 4 documentation nesting a dropdown in another dropdown. Any help to clear up what I'm missing here would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions