question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[dropdowns] Rename slot on nav-item-dropdown

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tmorehousecommented, Jul 5, 2017

@yordis

Release v0.18…0 is now available (latest), and there is a new slot named button-content that deprecates the old slot text

2reactions
tmorehousecommented, Jul 2, 2017

Although trigger is still wrapped inside a button element, so it might be better to be called trigger-content or button-content, or similar. as some people might assume it is a replacement for the trigger button as a whole.

Read more comments on GitHub >

github_iconTop 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 | Yarn - Package Manager
Fast, reliable, and secure dependency management.
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found