Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / webui / resources / cr_elements / v1_0 / demo_element.js
blob475e7fe58e7c0cf2517ddcec50eba64233fe461f
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.
5 /**
6 * @fileoverview Polymer element for UI wrapping a list of cr- elements.
7 */
8 Polymer({
9 is: 'cr-demo-element',
11 properties: {
12 checkboxChecked: {
13 type: Boolean,
14 value: false,
15 observer: 'checkboxCheckedChanged_'
18 collapseOpened: {
19 type: Boolean,
20 value: false,
21 observer: 'collapseOpenedChanged_'
24 inputValues: {
25 type: Array,
26 value: function() { return ["", "input1", "input2", "", "input4"]; },
27 observer: 'inputValuesChanged_'
30 checkboxLabel: {
31 type: String,
32 value: 'CheckboxLabel',
35 subLabel: {
36 type: String,
37 value: 'sub-label',
41 checkboxCheckedChanged_: function() {
42 console.log('checkboxCheckedChanged=' + this.checkboxChecked);
45 collapseOpenedChanged_: function() {
46 console.log('collapseOpened=' + this.collapseOpened);
49 inputValuesChanged_: function() {
50 console.log('inputValues=' + this.inputValues);
52 });