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.

CSidebarNavLink: please let us specify a custom class

See original GitHub issue

Would 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:closed
  • Created 4 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
fancydev18commented, Nov 19, 2019

<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 to fontIcon, all seems to work! And CIcon/coreui-icons is no longer required 🎉

0reactions
woothucommented, Nov 19, 2019

Just use normal vue component tree, CRenderFunction is just rendering components, nothing more.

Read more comments on GitHub >

github_iconTop 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 >

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