Fuxy526 / vue-columns-resizable

Vue directive for making table columns resizable.
MIT License
41 stars 25 forks source link

Allow use on top elements #4

Open onmotion opened 5 years ago

onmotion commented 5 years ago

For example, it is useful for vuetify v-data-table or the same components when we cannot access to <table> element

Kreyco commented 4 years ago

@onmotion Could you help me with an example of use?

onmotion commented 4 years ago

@onmotion Could you help me with an example of use?

<template>
<v-data-table
       ref="table"
       v-model="selected"
       v-columns-resizable
>
           <template v-slot:items="{ props }">
           </template>
</v-data-table>
</template>

<script>
import VueColumnsResizable from './plugins/columns-resizable';
</script>
Kreyco commented 4 years ago

@onmotion Thank you for your answer and pull request. I used your PR into another project to use it as a npm dependency. 🐵

Here is: vue-columns-resizable-vuetify vue-columns-resizable - Fork