Scrum / vue-2-breadcrumbs

Vue breadcrumbs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[feat]: Customize template

furyscript opened this issue · comments

commented

Can we customize breadcrumb template like this?
If no, can add a fast commit for this

Vue.use(VueBreadcrumbs, {
  template:
    '<b-container class="breadcrumb pt-3 mb-0" v-if="$breadcrumbs.length"> ' +
      '<router-link class="breadcrumb-item" to="/">Home</router-link> ' +
      '<router-link class="breadcrumb-item" v-for="(crumb, key) in $breadcrumbs" :to="linkProp(crumb)" :key="key">{{ crumb | crumbText }}</router-link> ' +
    '</b-container>'
})

You can easy inspire by this https://github.com/samturrell/vue-breadcrumbs/blob/master/src/index.js
I need very soon this update, please hope you add this feature