chrisbeluga / kirby-navigation

Navigation field for getkirby.com
78 stars 12 forks source link

Use `panel.plugin({use: VueNestable})` #11

Closed distantnative closed 3 years ago

distantnative commented 3 years ago

Instead using this beforeCreate hook https://github.com/chrisbeluga/kirby-navigation/blob/main/src/app.vue#L329

you should be able to achieve the same in your https://github.com/chrisbeluga/kirby-navigation/blob/main/src/index.js via

panel.plugin('beluga/navigation', {
    fields:  ...,
    use: VueNestable
})
chrisbeluga commented 3 years ago

@distantnative Thanks for the heads up, updated with latest commit