- Vue 3.x
npm i vue3-table-resizable
When registered globally, the directive will be available throughout the project. This means that you can use it in any component without the need for additional imports.
In main.js:
import { createApp } from 'vue';
import App from './App.vue';
import vTableResizable from 'vue3-table-resizable';
createApp(App)
.use(vTableResizable)
.mount('#app');
When registering locally, the directive will be available for use only in the component where it was registered.
In any component:
<script>
import vTableResizable from "vue3-table-resizable";
export default {
directives: {
vTableResizable
}
}
</script>