CSidebarNavLink: please let us specify a custom class
See original GitHub issueWould it be possible to please let us specify a custom class for some sidebar links, in 3.0?
'CSidebarNavLink',
{
props: {
name: '...',
to: '...',
icon: 'fas fa-calendar-alt',
class: 'admin-only'
}
}
The class should be added to generated li
:
<li class="c-sidebar-nav-item admin-only">
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:9
Top Results From Across the Web
Over 90 Bootstrap based Vue.js components and directives. CoreUI ...
CoreUI for Vue.js replaces and extends the Bootstrap javascript. Components have been built from ... CSidebarNavLink: please let us specify a custom class....
Read more >CoreUI Vue components library - BestofVue
CoreUI for Vue.js replaces and extends the Bootstrap javascript. Components have been built from ... CSidebarNavLink: please let us specify a custom class....
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
<CRenderFunction :contentToRender="nav" />
I see now this changed in latest version to
<CRenderFunction flat :contentToRender="nav" />
Adding
flat
fixes the error. Is that required?After changing
icon
tofontIcon
, all seems to work! And CIcon/coreui-icons is no longer required 🎉Just use normal vue component tree, CRenderFunction is just rendering components, nothing more.