OLD | NEW |
1 <!-- | 1 <!-- |
2 // Copyright 2014 The Chromium Authors. All rights reserved. | 2 // Copyright 2014 The Chromium Authors. All rights reserved. |
3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
5 --> | 5 --> |
6 <import src="/sky/framework/sky-checkbox.sky" /> | 6 <import src="/sky/framework/elements/sky-checkbox.sky" /> |
7 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> | 7 <import src="/sky/framework/elements/sky-element/sky-element.sky" as="SkyElement
" /> |
8 | 8 |
9 <sky-element | 9 <sky-element |
10 name="test-element" | 10 name="test-element" |
11 attributes="size:number, checked:boolean,name:string" | 11 attributes="size:number, checked:boolean,name:string" |
12 on-host-event="handleEvent"> | 12 on-host-event="handleEvent"> |
13 <template> | 13 <template> |
14 <div id="inside" on-test-event="handleEvent" lang="{{ value }}">{{ value }}</d
iv> | 14 <div id="inside" on-test-event="handleEvent" lang="{{ value }}">{{ value }}</d
iv> |
15 <sky-checkbox id="checkbox" checked="{{ checked }}" /> | 15 <sky-checkbox id="checkbox" checked="{{ checked }}" /> |
16 </template> | 16 </template> |
17 <script> | 17 <script> |
(...skipping 22 matching lines...) Expand all Loading... |
40 recordAttributeChange(name, oldValue, newValue) { | 40 recordAttributeChange(name, oldValue, newValue) { |
41 this.changes.push({ | 41 this.changes.push({ |
42 name: name, | 42 name: name, |
43 newValue: newValue, | 43 newValue: newValue, |
44 oldValue: oldValue, | 44 oldValue: oldValue, |
45 }); | 45 }); |
46 } | 46 } |
47 }.register(); | 47 }.register(); |
48 </script> | 48 </script> |
49 </sky-element> | 49 </sky-element> |
OLD | NEW |