Index: chrome/browser/resources/cr_elements_ui/cr_elements_ui.js |
diff --git a/chrome/browser/resources/cr_elements_ui/cr_elements_ui.js b/chrome/browser/resources/cr_elements_ui/cr_elements_ui.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6f25ed07f489b81f6cdc727c50b013a7c3619a02 |
--- /dev/null |
+++ b/chrome/browser/resources/cr_elements_ui/cr_elements_ui.js |
@@ -0,0 +1,44 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+/** |
+ * @fileoverview Polymer element for UI wrapping a list of cr- elements. |
+ */ |
+(function() { |
Jeremy Klein
2015/05/12 06:51:13
no need for the iife.
|
+ |
+Polymer({ |
+ is: 'cr-elements-ui', |
+ |
+ properties: { |
+ checkboxChecked: { |
+ type: Boolean, |
+ value: true, |
+ observer: 'checkboxCheckedChanged_' |
+ }, |
+ collapseOpened: { |
+ type: Boolean, |
+ value: true, |
+ observer: 'collapseOpenedChanged_' |
+ }, |
+ inputValue: { |
+ type: String, |
+ value: '', |
+ observer: 'inputValueChanged_' |
+ }, |
+ }, |
+ |
+ checkboxCheckedChanged_: function() { |
+ console.log('checkboxCheckedChanged=' + this.checkboxChecked); |
+ }, |
+ |
+ collapseOpenedChanged_: function() { |
+ console.log('collapseOpened=' + this.collapseOpened); |
+ }, |
+ |
+ inputValueChanged_: function() { |
+ console.log('inputValue=' + this.inputValue); |
+ } |
+ |
michaelpg
2015/05/14 03:05:11
nit: kill blank line
|
+}); |
+})(); |