I’ve created new page and added container and dropdown.
Wanted to check if class toggle works but Data Bindings windows is empty.
When I added a regular button it shows on the data bindings list but then it do not work as dropdown toggle button. As soon as I add “dropdown-toggle” class to the regular button it vanishes form the Data Bindings list.
How to make a
to appear on Data Bindings list ? what are to rules ? what lands on the list and what not ?
or
how to make class toggle when dropdown is open ?
I’ve created a simple menu (dynamic collapse) with a language button that I would like to behave as dropdown ( second dynamic collapse).
When I click to expand dropdown two things happen:
Arrow icon changes to an X icon ( I’ve achieved it with class toggle attached to the state of dynamic collapse ) (collapse3.collapsed != 1)
shows other languages ( the second dynamic collapse)
The problem right now is that user must choose the language or click the X to collapse the options.
If someone clicks the blue menu button without doing so the second collapse stays visible.
It would be perfect if
(1) a mouse click on anything other that two visible language options (nested inside dynamic collapse) would close it (like it works with BS5 Dropdown)
(2) clicking the blue menu button closes first and second collapse but opens only the first one
The walk-around I’ve envisioned is to create a BS5 Dropdown instead of second collapse and style it with CSS which I’ve managed somehow (many, many containers…).
but I can’t find Dropdown in Data Bindings list so I can’t add Class Toggle hence me previous post seeking help.
Sorry, but I don’t really get your idea here.
I am also a bit confused about the 3 code samples you posted … what should i check there / which code example of the 3 you posted exactly?
What is your final goal here? To have a dropdown inside a collapse - i just can’t get your idea?
Do you wish your blue button to open a dropdown and this dropdown to open another dropdown? Or is it something else you are trying to achieve?
Do you maybe have a live example of what you need?
What I’m getting from this is you want a dropdown like menu but you have built it using the collapse components, you have then nested a collapse inside so you have two collapses for a nested menu.
Then you want to close these two collapses when the user clicks away from the collapses, kind of like how a modal works or a offcanvas?