Chromium Code Reviews| OLD | NEW |
|---|---|
| (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-element.sky" as="SkyElement" /> | |
| 7 | |
| 8 <sky-element name="color-sample" attributes="color:string"> | |
| 9 <template> | |
| 10 <style> | |
| 11 :host { | |
| 12 background-color: {{ color }}; | |
| 13 } | |
| 14 </style> | |
| 15 </template> | |
| 16 <script> | |
| 17 module.exports = class extends SkyElement { | |
| 18 created() { | |
| 19 this.color = "blue"; // "#FFFFFF"; | |
| 20 } | |
| 21 }.register(); | |
| 22 </script> | |
| 23 </sky-element> | |
| OLD | NEW |