Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nuxt3 Configurations #157

Open
david8z opened this issue Feb 22, 2022 · 0 comments
Open

Nuxt3 Configurations #157

david8z opened this issue Feb 22, 2022 · 0 comments

Comments

@david8z
Copy link

david8z commented Feb 22, 2022

Just wanted to point out how I had to set it up in order to use it with a Nuxt3 app in case it's usefull for anyone (not sure if it might be worth to add it in the docs)

Created file plugins/vue-slicksort.js with following content:

import { plugin as Slicksort, HandleDirective  } from 'vue-slicksort';

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(Slicksort)
  // In order to use handler
  nuxtApp.vueApp.directive('handle', HandleDirective)
})

Thanks for the great plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant