vue-bulma-table

Vue DataTable with Bulma style
2,470
Install
npm install vue-bulma-table
Latest Version:1.6.8
Older releases:2
License:MIT
Last Updated:Feb 21, 2024
Links: npm
Maintainer: 1sttati

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

The best Datatable for Vue.js 2.x which never sucks

37,016 870
@unicorns/data-table

Vue component for rendering data-tables

12,383 3
vue2-datatable-component-uikit

The best Datatable for Vue.js 2.x which never sucks... with ui-kit

4,771 870
@laraveldaily/vue2-datatable

Datatable for Vue.js 2.x

3,285 6
vue-datatable-component

Datatable encapsulation for Vue 1.x

646 23

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