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

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

Issue 1124073007: Add demo_page.html to cr_elements/v0_8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: true,
15 observer: 'checkboxCheckedChanged_'
16 },
17
18 collapseOpened: {
19 type: Boolean,
20 value: true,
21 observer: 'collapseOpenedChanged_'
22 },
23
24 inputValue: {
25 type: String,
26 value: '',
27 observer: 'inputValueChanged_'
28 },
29 },
30
31 checkboxCheckedChanged_: function() {
32 console.log('checkboxCheckedChanged=' + this.checkboxChecked);
michaelpg 2015/05/15 02:45:29 for observer methods set in the properties block,
stevenjb 2015/05/15 03:01:41 Given that they should be equal, why would that be
michaelpg 2015/05/15 03:50:32 TL;DR: I meant this to be optional. I guess it's
33 },
34
35 collapseOpenedChanged_: function() {
36 console.log('collapseOpened=' + this.collapseOpened);
37 },
38
39 inputValueChanged_: function() {
40 console.log('inputValue=' + this.inputValue);
41 }
42 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698