[dropdowns] Rename slot on nav-item-dropdown
See original GitHub issueI would suggest to change text
slot name to trigger
on https://github.com/bootstrap-vue/bootstrap-vue/blob/master/lib/components/nav-item-dropdown.vue#L15
If I put an image inside only, like an avatar, then it will be no longer a text
and like another use cases … so I think that trigger
will make more sense
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Nav | Components - BootstrapVue
Use <b-nav-item-dropdown> to place dropdown items within your nav. ... The dropdown default slot is optionally scoped with the following scope available: ...
Read more >Changelog | Misc | BootstrapVue - API Manual
b-dropdown: close when clicking on nested elements inside items with to prop ... b-dropdown & b-nav-item-dropdown: pass optional scope to default slot ......
Read more >bootstrap-vue - UNPKG
src/components/nav/nav-item-dropdown.js",". ... Returns true if the either a $scopedSlot or $slot exists with the specified name\n return names.some(name ...
Read more >failed to resolve component if this is a native custom element
... class="nav-item dropdown"> <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-haspopup="true" ...
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 FreeTop 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
Top GitHub Comments
@yordis
Release v0.18…0 is now available (latest), and there is a new slot named
button-content
that deprecates the old slottext
Although trigger is still wrapped inside a button element, so it might be better to be called
trigger-content
orbutton-content
, or similar. as some people might assume it is a replacement for the trigger button as a whole.