Scrum / vue-2-breadcrumbs

Vue breadcrumbs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crumbs with multiple parents

rgbjay opened this issue · comments

Just wondering how I would go about showing crumbs with more than one parent, e.g

Home > Directory > Business Name

Thanks

@rgbjay Hi, In my example, there is an item in the menu parent which refers to children menu item home

{
path: '/',
name: 'Home',
component: () => import('../views/Home.vue'),
meta: {
breadcrumb: 'Home'
},
children: [
{
path: 'settings',
name: 'settings',
components: {
content: { template: `<router-view/>` },
sidebar: { template: `<div><h4>Settings:</h4><router-link :to="{name:'entities', params: {entityName:'entity1'}}">entities 1</router-link> </br><router-link :to="{name:'entities', params: {entityName:'entity2'}}">entities 2</router-link> </br><router-link :to="{name:'entities', params: {entityName:'entity3'}}">entities 3</router-link></div>` }
},
meta: {
breadcrumb: 'Settings'
},

{
path: '/parent',
component: { template: '<h2>Parent</h2>' },
meta: {
breadcrumb: {
label: 'Parent to settings',
parent: 'settings'
}
},
}

Perhaps you meant it? Let me know if I can help with anything else

Thanks this seems to do the trick!

@rgbjay Always welcome, put stars if you like this project :)