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

Unified Diff: sky/examples/example-scrollable/example-scrollable.sky

Issue 980323003: Clean up examples directory (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/examples/example-element/index.sky ('k') | sky/examples/example-scrollable/index.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/example-scrollable/example-scrollable.sky
diff --git a/sky/examples/example-scrollable/example-scrollable.sky b/sky/examples/example-scrollable/example-scrollable.sky
deleted file mode 100644
index c6f27b88215d22c704bdaf282aca5306fa92a9d1..0000000000000000000000000000000000000000
--- a/sky/examples/example-scrollable/example-scrollable.sky
+++ /dev/null
@@ -1,38 +0,0 @@
-<!--
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
--->
-<import src="/sky/framework/sky-element.sky" />
-<import src="/sky/framework/sky-scrollable.sky" />
-<import src="../data/cities.sky" as="cities" />
-
-<sky-element name="example-scrollable">
-<template>
- <style>
- sky-scrollable {
- margin: 20px;
- height: 400px;
- border: 2px solid blue;
- }
- </style>
- <sky-scrollable />
-</template>
-<script>
-import "dart:sky";
-
-@Tagname('example-scrollable')
-class ExampleScrollable extends SkyElement {
- void shadowRootReady() {
- Element parent = shadowRoot.querySelector('sky-scrollable');
- for (Map city in cities.kData.getRange(0, 300)) {
- Element div = document.createElement('div');
- div.setChild(new Text(city['name']));
- parent.appendChild(div);
- }
- }
-}
-
-_init(script) => register(script, ExampleScrollable);
-</script>
-</sky-element>
« no previous file with comments | « sky/examples/example-element/index.sky ('k') | sky/examples/example-scrollable/index.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698