vue-columns-resizable-vuetify

Vue directive for making table columns resizable.
10,852 7
Install
npm install vue-columns-resizable-vuetify
Latest Version:1.0.3
Vue:2
License:MIT
Last Updated:Mar 28, 2020
Links: GitHub  ·  npm
Maintainer: kreyco

vue-columns-resizable-vuetify

Version Downloads License

Project based

https://github.com/Fuxy526/vue-columns-resizable https://www.npmjs.com/package/vue-columns-resizable

And using Pull Request from https://github.com/onmotion/vue-columns-resizable

Changes

Allow use on top elements (Vuetify use)

Setup

Vue directive for making table columns resizable.

demo

Install

npm install vue-columns-resizable-vuetify --save

Usage

main.js
import VueColumnsResizableVuetify from './plugins/vue-columns-resizable-vuetify';

Vue.use(VueColumnsResizableVuetify);
*.vue
<table border="1" class="table" v-columns-resizable>
  <thead>
    <tr>
      <th width="50%">name</th>
      <th width="25%">age</th>
      <th width="25%">gender</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>John</td>
      <td>20</td>
      <td>male</td>
    </tr>
    <tr>
      <td>Emma</td>
      <td>18</td>
      <td>female</td>
    </tr>
    <tr>
      <td>Peter</td>
      <td>21</td>
      <td>male</td>
    </tr>
  </tbody>
</table>

Resize on thead

<table border="1" class="table">
  <thead v-columns-resizable>
    <tr>
      <th width="50%">name</th>
      <th width="25%">age</th>
      <th width="25%">gender</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>John</td>
      <td>20</td>
      <td>male</td>
    </tr>
    <tr>
      <td>Emma</td>
      <td>18</td>
      <td>female</td>
    </tr>
    <tr>
      <td>Peter</td>
      <td>21</td>
      <td>male</td>
    </tr>
  </tbody>
</table>

Resize on v-data-table (Using Vuetify ^2.0)

<v-data-table
    ref="table"
    v-model="selected"
    v-columns-resizable
>
    <template v-slot:items="{ props }"> //It is not necessary to use template at all
    </template>
</v-data-table>

Changelog

  • 1.0.1 - Allow use on top elements (Vuetify use)
  • 0.0.1 - Resize on columns & Resize on thead

Related Packages

vue-resizables

The resize utilities of Vue.

14,264 14
vue-resizable

Vue2 component that allows to resize and drag elements

2,442,850 227
vrp-vue-resizable

Vue2 component that allows to resize and drag elements

2,049 227
v-snackbars

Display the v-snackbar (from Vuetify) with a stack display

92,647 110
v-resizable

Vue directive for resizable elements

25,554 16

Version History

Version Released Vue License
1.0.3 ^2.6.11 MIT
1.0.2 ^2.6.11 MIT
1.0.1 ^2.6.11 MIT
1.0.0 ^2.6.11 MIT