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

Side by Side Diff: ui/webui/resources/cr_elements/v1_0/demo_element.js

Issue 1406023003: Elim cr_elements/v1_0 subdirectory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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 // 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 Polymer({
9 is: 'cr-demo-element',
10
11 properties: {
12 checkboxChecked: {
13 type: Boolean,
14 value: false,
15 observer: 'checkboxCheckedChanged_'
16 },
17
18 collapseOpened: {
19 type: Boolean,
20 value: false,
21 observer: 'collapseOpenedChanged_'
22 },
23
24 inputValues: {
25 type: Array,
26 value: function() { return ["", "input1", "input2", "", "input4"]; },
27 observer: 'inputValuesChanged_'
28 },
29
30 checkboxLabel: {
31 type: String,
32 value: 'CheckboxLabel',
33 },
34
35 subLabel: {
36 type: String,
37 value: 'sub-label',
38 },
39 },
40
41 checkboxCheckedChanged_: function() {
42 console.log('checkboxCheckedChanged=' + this.checkboxChecked);
43 },
44
45 collapseOpenedChanged_: function() {
46 console.log('collapseOpened=' + this.collapseOpened);
47 },
48
49 inputValuesChanged_: function() {
50 console.log('inputValues=' + this.inputValues);
51 }
52 });
OLDNEW
« no previous file with comments | « ui/webui/resources/cr_elements/v1_0/demo_element.html ('k') | ui/webui/resources/cr_elements/v1_0/demo_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698