0.2.2 • Published 5 years ago

table-column-filter v0.2.2

Weekly downloads
90
License
MIT
Repository
github
Last release
5 years ago

table-column-filter

A Vue component(directive) that controls the columns of a table

It's available for vue2 and vue3

simple:

How to use ?

step 1

npm install table-column-filter

step 2

import tableColumnFilter from 'table-column-filter'

Vue.use(tableColumnFilter)

in main.js

step 3

1. add directive v-table-column-filter to table tag
2. add attribute "col" to "th" tag

eg.
<table v-table-column-filter>
  <th col="col1">col1</th>
  <th col="col2" basic>col2</th>
  <th col="col3" unchecked>col3</th>
  <th col="col4">col4</th>
</table>

options

basic

basic column, cannot cancel
eg. <th col="col2" basic>col2</th>

unchecked

default empty
eg. <th col="col3" unchecked>col3</th>

v-table-column-filter-simple

if you want the simple version, you can use directive v-table-column-filter-simple
eg. <table v-table-column-filter-simple>

use the cache of saving at last time(localStorage)

define unique key:

<table v-table-column-filter="'customer-table-01'">
0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago