Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(267)

Side by Side Diff: sky/examples/widgets/index.sky

Issue 868973002: Don't set expression attributes before they're bound. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sky/framework/sky-element/element-registry.sky » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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-box/sky-box.sky"/> 7 <import src="/sky/framework/sky-box/sky-box.sky"/>
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-checkbox/sky-checkbox.sky"/> 9 <import src="/sky/framework/sky-checkbox/sky-checkbox.sky"/>
10 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/> 10 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement"/>
(...skipping 19 matching lines...) Expand all
30 <div>value = {{ inputValue }}</div> 30 <div>value = {{ inputValue }}</div>
31 </sky-box> 31 </sky-box>
32 32
33 <sky-box title='Buttons'> 33 <sky-box title='Buttons'>
34 <sky-button id='button' on-click='handleClick'>Button</sky-button> 34 <sky-button id='button' on-click='handleClick'>Button</sky-button>
35 <div>highlight: {{ myButton.highlight }}</div> 35 <div>highlight: {{ myButton.highlight }}</div>
36 <div>clickCount: {{ clickCount }}</div> 36 <div>clickCount: {{ clickCount }}</div>
37 </sky-box> 37 </sky-box>
38 38
39 <sky-box title='Checkboxes'> 39 <sky-box title='Checkboxes'>
40 <div><sky-checkbox id='checkbox' />Checkbox</div> 40 <div><sky-checkbox id='checkbox' checked='{{ checked }}'/>Checkbox</div>
41 <div class="output">highlight: {{ myCheckbox.highlight }}</div> 41 <div class="output">highlight: {{ myCheckbox.highlight }}</div>
42 <div class="output">checked: {{ myCheckbox.checked }}</div> 42 <div class="output">checked: {{ myCheckbox.checked }}</div>
43 <div><sky-checkbox id='checkbox' checked='{{ checked }}'/>Checkbox, default checked.</div> 43 <div><sky-checkbox id='checkbox' checked="true"/>Checkbox, default checked.< /div>
44 <div class="output">checked: {{ checked }}</div> 44 <div class="output">checked: {{ checked }}</div>
45 </sky-box> 45 </sky-box>
46 46
47 <sky-box title='Radios'> 47 <sky-box title='Radios'>
48 <sky-box title='Group One'> 48 <sky-box title='Group One'>
49 <div><sky-radio group='foo'/>one</div> 49 <div><sky-radio group='foo'/>one</div>
50 <div><sky-radio group='foo' selected='true' />two</div> 50 <div><sky-radio group='foo' selected='true' />two</div>
51 <div><sky-radio group='foo'/>three</div> 51 <div><sky-radio group='foo'/>three</div>
52 </sky-box> 52 </sky-box>
53 <sky-box title='Group Two'> 53 <sky-box title='Group Two'>
(...skipping 24 matching lines...) Expand all
78 this.clickCount++; 78 this.clickCount++;
79 this.checked = !this.checked; 79 this.checked = !this.checked;
80 this.inputValue = "Moar clicking " + this.clickCount; 80 this.inputValue = "Moar clicking " + this.clickCount;
81 } 81 }
82 }.register(); 82 }.register();
83 </script> 83 </script>
84 </sky-element> 84 </sky-element>
85 85
86 <widget-root /> 86 <widget-root />
87 </sky> 87 </sky>
OLDNEW
« no previous file with comments | « no previous file | sky/framework/sky-element/element-registry.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698