0.4.0 • Published 4 years ago

elementable-vue v0.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

elementable-vue

This is the Vue version of the elementable datatable. I know, another datatable component.. But I am trying to make this one very straight forward and as decoupled as possible. This is only the first version so configuration is limited for now, you can expect a lot more changes to come. If you have ideas about features, feel free to drop them in the Issues and I will get back to you.

Install

npm install elementable-vue

Import

import ElemenTable from 'elementable-vue'

Configuration

You can use the following properties with the component:

columns

Type: Array Required

This is your collection of columns. Every column is an object which you can assign the following properties to:

PropertyTypeDescription
activebooleanSet an active column, this can only be applied to one
filterablebooleanMake this column available to be filtered
namestringThe name of the column, this will show as the column header
selectorstringThe property in the data object in dot notation
sortablebooleanDefine if the column should be sortable or not
typetypeSet this as String or Number

data

Type: Array Required

Every element of the data array represents a row in the table and should be an object with at least the properties defined in the columns array.

rowsPerPageOptions

Type: Array Default: 10, 25, 50

Choose how many rows can be displayed on a page.

0.4.0

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago