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 <sky> | |
| 7 <import src="/sky/framework/sky-box.sky"/> | |
| 8 <import src="/sky/framework/sky-element/sky-element.sky" as="SkyElement" /> | |
| 9 <import src="color-wheel.sky" /> | |
| 10 <sky-element name="color-picker"> | |
| 11 <template> | |
| 12 <style> | |
| 13 #color-sample { | |
| 14 height: 100px; | |
| 15 margin-top: 10px; | |
| 16 background-color: {{ inputColor }}; | |
| 17 } | |
| 18 </style> | |
| 19 <sky-box title='Choose a Color'> | |
| 20 <color-wheel color="{{ inputColor }}"/> | |
| 21 <div id="color-sample"></div> | |
| 22 </sky-box> | |
|
abarth-chromium
2015/02/02 16:53:55
These should be indented two more spaces (so sky-b
hansmuller1
2015/02/02 17:01:36
Done.
| |
| 23 </template> | |
| 24 <script> | |
| 25 (class extends SkyElement { | |
| 26 created() { | |
| 27 this.inputColor = "#FFFFFF"; | |
| 28 } | |
| 29 }).register(); | |
|
abarth-chromium
2015/02/02 16:53:55
Typically we'd write:
module.exports = class exte
hansmuller1
2015/02/02 17:01:36
Done.
| |
| 30 </script> | |
| 31 </sky-element> | |
| 32 </sky> | |
| OLD | NEW |