Skip to content

Commit

Permalink
update grid example to use paramAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Dec 5, 2014
1 parent d2e33d4 commit 9b7e103
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions examples/grid/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
Vue.component('demo-grid', {
template: '#grid-template',
replace: true,
paramAttributes: ['data', 'columns', 'filter-key'],
data: function () {
return {
data: null,
columns: null,
sortKey: '',
filterKey: '',
Expand Down
10 changes: 5 additions & 5 deletions examples/grid/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@
<form id="search">
Search <input name="query" v-model="searchQuery">
</form>
<demo-grid v-with="
data : gridData,
columns : gridColumns,
filterKey : searchQuery
"></demo-grid>
<demo-grid
data="{{gridData}}"
columns="{{gridColumns}}"
filter-key="{{searchQuery}}">
</demo-grid>
</div>

<script src="grid.js"></script>
Expand Down

0 comments on commit 9b7e103

Please sign in to comment.