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="../../framework/sky-element/sky-element.sky" as="SkyElement" /> | 6 <import src="../../framework/sky-element/sky-element.sky" as="SkyElement" /> |
7 <import src="city-data-service.sky" as="CityDataService" /> | 7 <import src="city-data-service.sky" as="CityDataService" /> |
8 <import src="city-sequence.sky" as="CitySequence" /> | 8 <import src="city-sequence.sky" as="CitySequence" /> |
9 | 9 |
10 <script> | 10 <script> |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 display: inline; | 82 display: inline; |
83 } | 83 } |
84 | 84 |
85 #name { | 85 #name { |
86 font-weight: bold | 86 font-weight: bold |
87 } | 87 } |
88 | 88 |
89 #population { | 89 #population { |
90 color: #AAA; | 90 color: #AAA; |
91 } | 91 } |
92 | |
93 </style> | 92 </style> |
94 <div> | 93 <div> |
95 <span id="name">{{ name }}</span>, | 94 <span id="name">{{ name }}</span> |
| 95 <t>, </t> |
96 <span id="population">population {{ population }}</span> | 96 <span id="population">population {{ population }}</span> |
97 </div> | 97 </div> |
98 </template> | 98 </template> |
99 <script> | 99 <script> |
100 module.exports.CityItemElement = class extends SkyElement { | 100 module.exports.CityItemElement = class extends SkyElement { |
101 created() { | 101 created() { |
102 this.name = ""; | 102 this.name = ""; |
103 this.population = ""; | 103 this.population = ""; |
104 } | 104 } |
105 set datum(datum) { | 105 set datum(datum) { |
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 | 619 |
620 scrollBy(amount) { | 620 scrollBy(amount) { |
621 this.scrollerElement.scrollTop += amount; | 621 this.scrollerElement.scrollTop += amount; |
622 this.handleScroll({ target: this.scrollerElement }); | 622 this.handleScroll({ target: this.scrollerElement }); |
623 } | 623 } |
624 }.register(); | 624 }.register(); |
625 | 625 |
626 })(this); | 626 })(this); |
627 </script> | 627 </script> |
628 </sky-element> | 628 </sky-element> |
OLD | NEW |