vue-tables-2
Advanced tools
Comparing version 0.2.71 to 0.2.72
@@ -9,53 +9,59 @@ module.exports = function() { | ||
} | ||
}, | ||
perPage:10, | ||
perPageValues:[10,25,50,100], | ||
params:{}, | ||
sortable:true, | ||
filterable:true, | ||
initFilters:{}, | ||
customFilters:[], | ||
templates:{}, | ||
debounce:500, | ||
dateFormat:"DD/MM/YYYY", | ||
toMomentFormat:false, | ||
skin:"table-striped table-bordered table-hover", | ||
columnsDisplay: {}, | ||
texts:{ | ||
}, | ||
perPage:10, | ||
perPageValues:[10,25,50,100], | ||
params:{}, | ||
sortable:true, | ||
filterable:true, | ||
initFilters:{}, | ||
customFilters:[], | ||
templates:{}, | ||
debounce:500, | ||
dateFormat:"DD/MM/YYYY", | ||
toMomentFormat:false, | ||
skin:"table-striped table-bordered table-hover", | ||
columnsDisplay: {}, | ||
texts:{ | ||
count:"Showing {from} to {to} of {count} records|{count} records|One record", | ||
filter:"Filter Results:", | ||
filterPlaceholder:"Search query", | ||
limit:"Records:", | ||
page:"Page:", | ||
noResults:"No matching records", | ||
filterBy:"Filter by {column}", | ||
loading:'Loading...', | ||
defaultOption:'Select {column}' | ||
}, | ||
sortIcon:{ | ||
base:'glyphicon', | ||
up: 'glyphicon-chevron-up', | ||
down: 'glyphicon-chevron-down' | ||
}, | ||
filterByColumn:false, | ||
highlightMatches:false, | ||
orderBy:false, | ||
footerHeadings:false, | ||
headings:{}, | ||
pagination: { | ||
dropdown:false, | ||
chunk:10 | ||
}, | ||
childRow: false, | ||
childRowKey:'id', | ||
responseAdapter: function(resp) { | ||
return { | ||
data: resp.data, | ||
count: resp.count | ||
} | ||
}, | ||
config: false | ||
filterPlaceholder:"Search query", | ||
limit:"Records:", | ||
page:"Page:", | ||
noResults:"No matching records", | ||
filterBy:"Filter by {column}", | ||
loading:'Loading...', | ||
defaultOption:'Select {column}' | ||
}, | ||
sortIcon:{ | ||
base:'glyphicon', | ||
up: 'glyphicon-chevron-up', | ||
down: 'glyphicon-chevron-down' | ||
}, | ||
filterByColumn:false, | ||
highlightMatches:false, | ||
orderBy:false, | ||
footerHeadings:false, | ||
headings:{}, | ||
pagination: { | ||
dropdown:false, | ||
chunk:10 | ||
}, | ||
childRow: false, | ||
childRowKey:'id', | ||
responseAdapter: function(resp) { | ||
return { | ||
data: resp.data, | ||
count: resp.count | ||
} | ||
}, | ||
requestKeys:{ | ||
query:'query', | ||
limit:'limit', | ||
orderBy:'orderBy', | ||
ascending:'ascending', | ||
page:'page', | ||
byColumn:'byColumn' | ||
}, | ||
config: false | ||
} | ||
} | ||
@@ -5,9 +5,11 @@ var merge = require('merge'); | ||
var keys = this.opts.requestKeys; | ||
var data = { | ||
query:this.query, | ||
limit:this.limit, | ||
orderBy:this.orderBy.column, | ||
ascending: this.orderBy.ascending?1:0, | ||
page:this.page, | ||
byColumn:this.opts.filterByColumn?1:0 | ||
[keys.query]:this.query, | ||
[keys.limit]:this.limit, | ||
[keys.orderBy]:this.orderBy.column, | ||
[keys.ascending]: this.orderBy.ascending?1:0, | ||
[keys.page]:this.page, | ||
[keys.byColumn]:this.opts.filterByColumn?1:0 | ||
}; | ||
@@ -14,0 +16,0 @@ |
{ | ||
"name": "vue-tables-2", | ||
"description": "Vue.js 2 grid components", | ||
"version": "0.2.71", | ||
"version": "0.2.72", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "vue2", |
58039
1442