Skip to content

Commit 9b7e103

Browse files
committed
update grid example to use paramAttributes
1 parent d2e33d4 commit 9b7e103

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

examples/grid/grid.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
Vue.component('demo-grid', {
33
template: '#grid-template',
44
replace: true,
5+
paramAttributes: ['data', 'columns', 'filter-key'],
56
data: function () {
67
return {
8+
data: null,
79
columns: null,
810
sortKey: '',
911
filterKey: '',

examples/grid/index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
<form id="search">
4242
Search <input name="query" v-model="searchQuery">
4343
</form>
44-
<demo-grid v-with="
45-
data : gridData,
46-
columns : gridColumns,
47-
filterKey : searchQuery
48-
"></demo-grid>
44+
<demo-grid
45+
data="{{gridData}}"
46+
columns="{{gridColumns}}"
47+
filter-key="{{searchQuery}}">
48+
</demo-grid>
4949
</div>
5050

5151
<script src="grid.js"></script>

0 commit comments

Comments
 (0)