1.0.9 • Published 6 years ago

wa-vue-grid v1.0.9

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

vue-grid

A vue-grid component that shows a table grid.

Build Status codecov Maintainability

Installation

npm install --save-dev wa-vue-grid

Browser

Include the script file.

<script type="text/javascript" src="node_modules/vuejs/dist/vue.min.js"></script>
<script type="text/javascript" src="node_modules/wa-vue-grid/dist/vue-grid.min.js"></script>
<script type="text/javascript">
  Vue.use(VueGrid);
</script>

Module

import VueGrid from 'wa-vue-grid';

Usage

<vue-grid :config="myConfig"></vue-grid>

{
  myConfig: {
    search: "http://mydomain:port/api",  //=> format json
    pagination: {
        enabled: true,
        perPage: 10,
        rangePage: 8,
        search: {
            page: "_page", //ex: "http://mydomain:port/api?_page=1&_limit=10"
            perPage: "_limit"
        }
    },
    filter: true,
    sortProperty: "col1",
    columns: [
      { name: "col1", display: "Column 1", sort: true },
      { name: "col2", display: "Column 2" }
    ],
    rows: []
  }
}
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago