multiple dropdowns, separate menus, separate triggers
See original GitHub issueIs it supported to have two different dropdowns displayed simultaneously (on the same screen)? I haven’t been able to configure this.
Here’s an example
<a class='dropdown-button' href='javascript:void()' data-activates='dropdown1'>Drop 1</a>
<ul id='dropdown1' class='dropdown-content'>
<li>1 one</li>
<li>1 two</li>
<li>1 three</li>
</ul>
<a class='dropdown-button' href='javascript:void()' data-activates='dropdown2'>Drop 2</a>
<ul id='dropdown2' class='dropdown-content'>
<li>2 one</li>
<li>2 two</li>
<li>2 three</li>
</ul>
$('.dropdown-button').dropdown({
inDuration: 300,
outDuration: 225,
constrain_width: false, // Does not change width of dropdown to that of the activator
hover: true, // Activate on hover
gutter: 0, // Spacing from edge
belowOrigin: false // Displays dropdown below the button
});
Issue Analytics
- State:
- Created 8 years ago
- Reactions:3
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Possible to assign one dropdown to multiple triggers?
i'm wondering if it's possible to assign one dropdown to multiple triggers. ... Just a menu dropdown on clicking the button ?
Read more >Multiple Dropdown Menus (Show/Hide Behaviour) - General
The Dropdown Component inherently handles clicking between the menus and hiding the alternate menu, while also closing if you click away.
Read more >Can an item in a drop down menu trigger ... - Acrobat Answers
What I want is that when you choose 'number 1', it triggers a drop down box that contains different options than if you...
Read more >How to create a multilevel dropdown menu in React
To achieve this design, we will recursively render the menu items. In the Dropdown component, let's delegate the rendering of the menu items...
Read more >GAS-071 Create Google Form with Multiple Dependent ...
GAS-071 Create Google Form with Multiple Dependent Dropdowns ; about me https://ashtonfei.github.io/ ; upwork with me https://www.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@arabesq610 I did this by specifying a unique Id to each of the anchor tags and then used that Id to initialize the dropwon using jquery.
and then for initializing.
Update:
I see a couple of people reacted with a thumbs down. If you could please elaborate why, that would be helpful?
@singhshashi thank you! that solution worked like a charm. I think people are misunderstanding the question. We don’t want open all menu’s at same time. we just want to have multiples dropdown (working) on the same menu. E.g: User > edit account Products > New product.
Category > New Category