Package Exports
- vue-grid
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-grid) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Vue Grid Component
A vuejs component to render tables. It obviously still lacks features, but everything should work correctly.
Usage
<input type="text" v-model="searchQuery">
<paginaiton id="my-table"></pagination>
<grid id="my-table" rows="{{gridData}}" columns="{{gridColumns}}" filter-key="{{searchQuery}}" per-page="10"></grid>The id property is an identifier, that connects the table to the pagination. So you can actually place your pagination in another area of the site (e.g. some sidebar).
new Vue({
el: 'body',
data: function() {
return {
searchQuery: '',
gridColumns: ['name', 'age'],
gridData: [
{ name: 'Barack Obama', age: 53 },
{ name: 'Some Dude', age: 24 },
{ name: 'Another Dude', age: 34 }
// ...
]
};
}
});