-
-
Notifications
You must be signed in to change notification settings - Fork 20
Add support for custom togglerClasses in Dropdown
widget, and addDropdownClass()
method.
#289
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
base: master
Are you sure you want to change the base?
Conversation
terabytesoftw
commented
Aug 1, 2025
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #289 +/- ##
=========================================
Coverage 99.65% 99.65%
- Complexity 695 697 +2
=========================================
Files 23 23
Lines 2927 2933 +6
=========================================
+ Hits 2917 2923 +6
Misses 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Dropdown
widget.Dropdown
widget.
Dropdown
widget.Dropdown
widget, and addDropdownClass()
method.
|
Line 56 in 2d2919a
And if you're talking about the dropdown container, add the Line 1536 in 2d2919a
|
Fair, but |
Correct, this is a nested widget and Dropdown is rendered without a container, the container is rendered in Nav. |
🤔 |
Open a new issue, include your use case, and I'll try to solve it. |
To give a functional example, I need to add class dropdown-menu-end to the last dropdown (and only the last) dropdown to prevent it from falling off screen. <ul class="nav navbar-nav ms-lg-auto">
[..]
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle dropdown-menu-end" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Button</a>
<ul class="dropdown-menu dropdown-menu-end">
<li>
<a class="dropdown-item" href="#">Profile</a>
</li>
<li>
<hr class="dropdown-divider">
</li>
<li>
<a class="dropdown-item" href="#">Logout</a>
</li>
</ul>
</li>
</ul> |
Oi, Posting at the same time :) |
… to include dropdown item classes.
This PR adds the ability to add a class to all |
Tested, working now as expected. |
In the issues you find when you open them, add a code example, it's easier to understand, thanks. |