OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 /** | |
6 * @fileoverview Polymer element for UI wrapping a list of cr- elements. | |
7 */ | |
8 (function() { | |
Jeremy Klein
2015/05/12 06:51:13
no need for the iife.
| |
9 | |
10 Polymer({ | |
11 is: 'cr-elements-ui', | |
12 | |
13 properties: { | |
14 checkboxChecked: { | |
15 type: Boolean, | |
16 value: true, | |
17 observer: 'checkboxCheckedChanged_' | |
18 }, | |
19 collapseOpened: { | |
20 type: Boolean, | |
21 value: true, | |
22 observer: 'collapseOpenedChanged_' | |
23 }, | |
24 inputValue: { | |
25 type: String, | |
26 value: '', | |
27 observer: 'inputValueChanged_' | |
28 }, | |
29 }, | |
30 | |
31 checkboxCheckedChanged_: function() { | |
32 console.log('checkboxCheckedChanged=' + this.checkboxChecked); | |
33 }, | |
34 | |
35 collapseOpenedChanged_: function() { | |
36 console.log('collapseOpened=' + this.collapseOpened); | |
37 }, | |
38 | |
39 inputValueChanged_: function() { | |
40 console.log('inputValue=' + this.inputValue); | |
41 } | |
42 | |
michaelpg
2015/05/14 03:05:11
nit: kill blank line
| |
43 }); | |
44 })(); | |
OLD | NEW |