Skip to content

Commit

Permalink
(demo) remove use of obsolete cellTemplate prop
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinecula committed Mar 19, 2019
1 parent cd14ffd commit 86af338
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 23 deletions.
14 changes: 4 additions & 10 deletions demo/detach_test.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,10 @@ <h3>Cosmoz omnitable demo</h3>
</template>
</cosmoz-omnitable-column>
<cosmoz-omnitable-column title="Custom template"
name="customname" value-path="name" sort-on="name" width="50px" flex="2"
cell-template="[[ customNameTemplate ]]">
name="customname" value-path="name" sort-on="name" width="50px" flex="2">
<template class="cell">
<span style="background: red;" on-tap="onTap">[[ item.name ]]</span>
</template>
</cosmoz-omnitable-column>

<paper-button slot="actions" on-run="updateSelectedRows">
Expand All @@ -154,9 +156,6 @@ <h3>Cosmoz omnitable demo</h3>
</dom-module>

<x-page class="fit">
<template id="customNameTemplate">
<span style="background: red;" on-tap="onTap">[[ item.name ]]</span>
</template>
</x-page>

<script type="text/javascript">
Expand Down Expand Up @@ -188,9 +187,6 @@ <h3>Cosmoz omnitable demo</h3>
locale: {
type: String,
value: null
},
customNameTemplate: {
type: Object
}
},

Expand All @@ -212,8 +208,6 @@ <h3>Cosmoz omnitable demo</h3>
this.async(() => {
this.data = data;
}, 100);
this.customNameTemplate = Polymer.dom(this).querySelector('#customNameTemplate');

},

changeData() {
Expand Down
3 changes: 0 additions & 3 deletions demo/full-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@
</head>
<body class="fullbleed">
<x-page class="fit">
<template id="customNameTemplate">
<span style="background: red;" on-tap="onTap">[[ item.name ]]</span>
</template>
</x-page>
</body></html>
3 changes: 0 additions & 3 deletions demo/helpers/hash-param-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
<dom-bind id="home">
<template is="dom-bind">
<x-page class="fit" style="height: 100%; width: 100%;" hash-param="full">
<template id="customNameTemplate">
<span style="background: red;" on-tap="onTap">[[ item.name ]]</span>
</template>
</x-page>
</template>
</dom-bind>
Expand Down
11 changes: 4 additions & 7 deletions demo/helpers/x-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,10 @@ <h3>Cosmoz omnitable demo</h3>
</template>
</cosmoz-omnitable-column>
<cosmoz-omnitable-column title="Custom template"
name="custom-name" value-path="name" sort-on="name" width="50px" flex="2"
cell-template="[[ customNameTemplate ]]">
name="custom-name" value-path="name" sort-on="name" width="50px" flex="2">
<template class="cell">
<span style="background: red;" on-tap="onTap">[[ item.name ]]</span>
</template>
</cosmoz-omnitable-column>
<cosmoz-omnitable-column-number title="Value" name="value" value-path="value" sort-on="value" group-on="value" locale="[[ locale ]]">
</cosmoz-omnitable-column-number>
Expand Down Expand Up @@ -138,9 +140,6 @@ <h3>Cosmoz omnitable demo</h3>
type: String,
value: 'sv'
},
customNameTemplate: {
type: Object
},
hashParam: {
type: String
}
Expand All @@ -161,8 +160,6 @@ <h3>Cosmoz omnitable demo</h3>
this.async(() => {
this.data = data;
}, 100);
this.customNameTemplate = Polymer.dom(this).querySelector('#customNameTemplate');

},

changeData() {
Expand Down

0 comments on commit 86af338

Please sign in to comment.