Skip to content

dropdown in sidebar item #3405

Answered by Bond-Addict
Fanreza asked this question in Q&A
May 5, 2023 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

@Fanreza this is from a current project of mine.

<template>
  <va-sidebar v-model="show">
    <template v-for="(nav, index) in navItems">
      <template v-if="nav.children">
        <va-collapse :header="nav.name" solid :key="index">
          <template v-for="child in nav.children">
            <template v-if="child.children">
              <va-collapse :header="child.name" solid :key="index">
                <template v-for="subChild in child.children">
                  <router-link class="nav-link active" :to="{ name: subChild.route }">
                    <va-sidebar-item :active="isRouteActive(subChild.route)">
                      <va-sidebar-item-content>
                       …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Fanreza
Comment options

Comment options

You must be logged in to vote
1 reply
@Fanreza
Comment options

Answer selected by Fanreza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants