|
55 | 55 | </template>
|
56 | 56 | </paper-datatable-column>
|
57 | 57 | </paper-datatable>
|
58 |
| - </paper-card> |
| 58 | + </paper-card> |
| 59 | + |
| 60 | + <paper-card> |
| 61 | + <paper-datatable data="{{data}}" selectable> |
| 62 | + <paper-datatable-column header="Dessert (100g serving)" property="title" type="String" tooltip="Some title" sortable> </paper-datatable-column> |
| 63 | + <paper-datatable-column header="Object a" property="complexObj.a" tooltip="The total amount of..." sortable> |
| 64 | + </paper-datatable-column> |
| 65 | + <paper-datatable-column header="Object b" property="complexObj.b" tooltip="The total amount of..." sortable> |
| 66 | + </paper-datatable-column> |
| 67 | + </paper-datatable> |
| 68 | + </paper-card> |
59 | 69 |
|
60 | 70 | <paper-card>
|
61 | 71 | <paper-datatable data="{{data}}" selectable multi-selection>
|
|
81 | 91 | </template>
|
82 | 92 | </template>
|
83 | 93 | </paper-datatable-column>
|
| 94 | + <paper-datatable-column header="Object Single element" property="complexObj.b" tooltip="The total amount of..." sortable> |
| 95 | + <template> |
| 96 | + <paper-input value="{{value}}"></paper-input> |
| 97 | + </template> |
| 98 | + </paper-datatable-column> |
| 99 | + <paper-datatable-column header="Very Complexe Object" property="veryComplexObj.a.x" tooltip="The total amount of..." sortable> |
| 100 | + <template> |
| 101 | + <template is="dom-repeat" items="{{value}}" as="valueItem"> |
| 102 | + <paper-input value="{{valueItem}}"></paper-input> |
| 103 | + </template> |
| 104 | + </template> |
| 105 | + </paper-datatable-column> |
84 | 106 | </paper-datatable>
|
85 | 107 | </paper-card>
|
86 | 108 |
|
|
93 | 115 | <paper-datatable-column header="Complex Array" property="complexArr" type="Array" array-display-prop="title"></paper-datatable-column>
|
94 | 116 | <paper-datatable-column id="dateTest" header="Created" property="created" type="Date" sortable format-value="{{formatDate}}"></paper-datatable-column>
|
95 | 117 | <paper-datatable-column id="dateTest" header="Created" property="created" type="Date" sortable></paper-datatable-column>
|
| 118 | + </paper-datatable-column> |
96 | 119 | </paper-datatable>
|
97 | 120 | </paper-card>
|
98 | 121 |
|
|
109 | 132 | return this.get(path);
|
110 | 133 | };
|
111 | 134 | app.data = [
|
112 |
| - {title: 'Ice cream', yummy: true, calories: 2000, complexObj: {a: 'b', b: 'd'}, arr: [2,3,4], complexArr: [{title:'b'}, {title:'c'}], created: new Date(1447315235838)}, |
113 |
| - {title: 'Dessert', yummy: true, calories: 3000, complexObj: {a: 'bb', b: 'dd'}, arr: [5,6], complexArr: [{title:'b'}, {title:'c'}], created: new Date(1447155235838)}, |
114 |
| - {title: 'Cake', yummy: false, calories: 4000, complexObj: {a: 'cc', b: 'gg'}, arr: [7,8], complexArr: [{title:'b'}, {title:'c'}], created: new Date(1447355135838)} |
| 135 | + {title: 'Ice cream', yummy: true, calories: 2000, veryComplexObj: {a: {x: ['b', 'c']}}, complexObj: {a: 'b', b: 'd'}, arr: [2,3,4], complexArr: [{title:'b'}, {title:'c'}], created: new Date(1447315235838)}, |
| 136 | + {title: 'Dessert', yummy: true, calories: 3000, veryComplexObj: {a: {x: ['b', 'c']}}, complexObj: {a: 'bb', b: 'dd'}, arr: [5,6], complexArr: [{title:'b'}, {title:'c'}], created: new Date(1447155235838)}, |
| 137 | + {title: 'Cake', yummy: false, calories: 4000, veryComplexObj: {a: {x: ['b', 'c']}}, complexObj: {a: 'cc', b: 'gg'}, arr: [7,8], complexArr: [{title:'b'}, {title:'c'}], created: new Date(1447355135838)} |
115 | 138 | ];
|
116 | 139 | app.log = function(ev){
|
117 | 140 | console.info('event', ev.type, 'on', ev.target, 'with detail', ev.detail);
|
|
0 commit comments