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

Unified Diff: sky/examples/example-element/index.sky

Issue 950493003: Add a basic sky-element custom element (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
Index: sky/examples/example-element/index.sky
diff --git a/sky/examples/color/color-picker-demo.sky b/sky/examples/example-element/index.sky
similarity index 53%
copy from sky/examples/color/color-picker-demo.sky
copy to sky/examples/example-element/index.sky
index e8d88e58b3dd0ae3870e145ab598e6682986579c..f895fbefd4f70e8836f6169492ad74cbadef210c 100644
--- a/sky/examples/color/color-picker-demo.sky
+++ b/sky/examples/example-element/index.sky
@@ -1,10 +1,16 @@
-#!mojo mojo:sky_viewer
<!--
// 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.
-->
<sky>
-<import src="color-picker.sky" />
-<color-picker />
+ <import src="example-element.sky" />
+ <style>
+ example {
+ border: 1px solid blue;
+ width: 100px;
+ height: 100px;
+ }
+ </style>
+ <example />
</sky>

Powered by Google App Engine
This is Rietveld 408576698