| 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 <sky> | 6 <sky> | 
| 7 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/> | 7 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/> | 
| 8 <import src="/sky/framework/sky-button/sky-button.sky"/> | 8 <import src="/sky/framework/sky-button/sky-button.sky"/> | 
| 9 <import src="/sky/framework/sky-box/sky-box.sky"/> | 9 <import src="/sky/framework/sky-box/sky-box.sky"/> | 
| 10 <import src="/sky/framework/sky-checkbox/sky-checkbox.sky"/> | 10 <import src="/sky/framework/sky-checkbox/sky-checkbox.sky"/> | 
| 11 <import src="/sky/framework/sky-radio/sky-radio.sky"/> | 11 <import src="/sky/framework/sky-radio/sky-radio.sky"/> | 
| 12 <sky-element name="widget-root"> | 12 <sky-element name="widget-root"> | 
| 13 <template> | 13 <template> | 
| 14   <style> | 14   <style> | 
| 15   div { display: paragraph; } | 15   div { | 
|  | 16     display: flex; | 
|  | 17     align-items: center; | 
|  | 18   } | 
|  | 19   sky-checkbox { | 
|  | 20     margin: 5px; | 
|  | 21   } | 
|  | 22   .output { | 
|  | 23     margin-left: 48px; | 
|  | 24   } | 
| 16   </style> | 25   </style> | 
| 17 | 26 | 
| 18   <sky-box title='Buttons'> | 27   <sky-box title='Buttons'> | 
| 19     <sky-button id='button' on-click='handleClick'>Button</sky-button> | 28     <sky-button id='button' on-click='handleClick'>Button</sky-button> | 
| 20     <div>highlight: {{ myButton.highlight }}</div> | 29     <div>highlight: {{ myButton.highlight }}</div> | 
| 21     <div>clickCount: {{ clickCount }}</div> | 30     <div>clickCount: {{ clickCount }}</div> | 
| 22   </sky-box> | 31   </sky-box> | 
| 23 | 32 | 
| 24   <sky-box title='Checkboxes'> | 33   <sky-box title='Checkboxes'> | 
| 25     <div><sky-checkbox id='checkbox' />Checkbox</div> | 34     <div><sky-checkbox id='checkbox' />Checkbox</div> | 
| 26     <div>highlight: {{ myCheckbox.highlight }}</div> | 35     <div class="output">highlight: {{ myCheckbox.highlight }}</div> | 
| 27     <div>checked: {{ myCheckbox.checked }}</div> | 36     <div class="output">checked: {{ myCheckbox.checked }}</div> | 
| 28 |  | 
| 29     <div><sky-checkbox id='checkbox' checked='true'/>Checkbox, default checked.<
    /div> | 37     <div><sky-checkbox id='checkbox' checked='true'/>Checkbox, default checked.<
    /div> | 
| 30   </sky-box> | 38   </sky-box> | 
| 31 | 39 | 
| 32   <sky-box title='Radios'> | 40   <sky-box title='Radios'> | 
| 33     <sky-box title='Group One'> | 41     <sky-box title='Group One'> | 
| 34       <div><sky-radio group='foo'/>one</div> | 42       <div><sky-radio group='foo'/>one</div> | 
| 35       <div><sky-radio group='foo' selected='true' />two</div> | 43       <div><sky-radio group='foo' selected='true' />two</div> | 
| 36       <div><sky-radio group='foo'/>three</div> | 44       <div><sky-radio group='foo'/>three</div> | 
| 37     </sky-box> | 45     </sky-box> | 
| 38     <sky-box title='Group Two'> | 46     <sky-box title='Group Two'> | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
| 52   } | 60   } | 
| 53   handleClick(event) { | 61   handleClick(event) { | 
| 54     this.clickCount++; | 62     this.clickCount++; | 
| 55   } | 63   } | 
| 56 }.register(); | 64 }.register(); | 
| 57 </script> | 65 </script> | 
| 58 </sky-element> | 66 </sky-element> | 
| 59 | 67 | 
| 60 <widget-root /> | 68 <widget-root /> | 
| 61 </sky> | 69 </sky> | 
| OLD | NEW | 
|---|