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

Side by Side Diff: sky/examples/example-element/example-element.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 unified diff | Download patch
OLDNEW
(Empty)
1 <!--
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
4 // found in the LICENSE file.
5 -->
6 <import src="/sky/framework/sky-element.sky" />
7 <sky-element>
8 <template>
9 <style>
10 div {
11 height: 50px;
12 width: 50px;
13 background-color: green;
14 }
15 </style>
16 <div>Hi</div>
17 </template>
18 <script>
19 @tagname('example')
20 class ExampleElement extends SkyElement {
ojan 2015/02/21 00:19:16 Not directly related to this patch, but how hard w
abarth-chromium 2015/02/21 00:25:57 Very easy. In fact, it would be less code than we
21 }
22
23 _init(script) => register(script, ExampleElement);
24 </script>
25 </sky-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698