vue-bulma-table
vue-bulma-table
Vue DataTable with Bulma style
Getting Started
Installing
npm install vue-bulma-table --save
or
yarn add vue-bulma-table
Setup
import DataTable from 'vue-bulma-table'
Vue.component('data-table', DataTable)
Example:
html
<data-table
:data="data" # required - array of data
:fields="fields" # required - set columns
>
<template slot="lastname" slot-scope="prop"> # using slot in lastname field
<h1>{{ prop.data.lastname }}</h1>
</template>
<template slot="footer"> # optional - using footer
<tr></tr>
</template>
</data-table>
script
export default {
data () {
return {
fields: [
{
name: 'firstname', // name of object property in array
label: 'First name', // optional - custom table header
},
{
name: 'lastname',
label: 'Last name'
},
{
name: 'age',
label: 'Age',
callback: data => { // optional - get data of the role and return to cell
return data.age * 2
}
}
]
}
}
}
Related Packages
vue2-datatable-component-uikit
The best Datatable for Vue.js 2.x which never sucks... with ui-kit
4,771
870
Version History
| Version | Released | License |
|---|---|---|
| 1.6.8 | MIT | |
| 1.6.7 | MIT | |
| 1.6.6 | MIT | |
| 1.6.5 | MIT | |
| 1.6.4 | MIT | |
| 1.6.3 | MIT | |
| 1.6.2 | MIT | |
| 1.6.1 | MIT | |
| 1.6.0 | MIT | |
| 1.5.25 | MIT | |
| 1.5.24 | MIT | |
| 1.5.23 | MIT | |
| 1.5.22 | MIT | |
| 1.5.21 | MIT | |
| 1.5.20 | MIT | |
| 1.5.19 | MIT | |
| 1.5.18 | MIT | |
| 1.5.17 | MIT | |
| 1.5.16 | MIT | |
| 1.5.15 | MIT | |
| 1.5.14 | MIT | |
| 1.5.13 | MIT | |
| 1.5.12 | MIT | |
| 1.5.11 | MIT | |
| 1.5.10 | MIT | |
| 1.5.9 | MIT | |
| 1.5.8 | MIT | |
| 1.5.7 | MIT | |
| 1.5.6 | MIT | |
| 1.5.5 | MIT |
Showing the latest 30 of 56. See every release on npm