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

Side by Side Diff: sky/examples/example-scrollable.sky

Issue 876853005: Add wheel support to sky-scrollable (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing files 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 | « sky/engine/web/WebViewImpl.cpp ('k') | sky/framework/sky-scrollable.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 2015 The Chromium Authors. All rights reserved. 2 // Copyright 2015 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-scrollable.sky" /> 8 <import src="/sky/framework/sky-scrollable.sky" />
9 <import src="data/cities.sky" as="cities" /> 9 <import src="data/cities.sky" as="cities" />
10 10
(...skipping 14 matching lines...) Expand all
25 <template repeat="{{ cities }}"> 25 <template repeat="{{ cities }}">
26 <template> 26 <template>
27 <div>{{ name }}</div> 27 <div>{{ name }}</div>
28 </template> 28 </template>
29 </template> 29 </template>
30 </sky-scrollable> 30 </sky-scrollable>
31 </template> 31 </template>
32 <script> 32 <script>
33 module.exports = class extends SkyElement { 33 module.exports = class extends SkyElement {
34 created() { 34 created() {
35 this.cities = cities; 35 this.cities = cities.slice(0, 300);
36 } 36 }
37 }.register(); 37 }.register();
38 </script> 38 </script>
39 </sky-element> 39 </sky-element>
40 40
41 <example-scrollable /> 41 <example-scrollable />
42 </sky> 42 </sky>
OLDNEW
« no previous file with comments | « sky/engine/web/WebViewImpl.cpp ('k') | sky/framework/sky-scrollable.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698