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

Side by Side Diff: ui/webui/resources/cr_elements/cr_expand_button/cr_expand_button.js

Issue 1100993002: Implement md-settings network lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 5 years, 8 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 2015 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
7 * 'cr-expand-button' is a chrome-specific wrapper around paper-button that
8 * toggles between an opened (expanded) and closed state.
9 *
10 * Example:
11 *
12 * <cr-expand-button expanded={{sectionIsExpanded}}></cr-expand-button>
michaelpg 2015/04/23 02:16:29 nit: need "" around the {{}} in the example
stevenjb 2015/04/24 01:25:26 Done.
13 *
14 * @group Chrome Elements
15 * @element cr-expand-button
16 */
17 Polymer('cr-expand-button', {
18 publish: {
19 /**
20 * If true, the button is in the expanded state and will show the
21 * 'expand-less' icon. If false, the button shows the 'expand-more' icon.
22 *
23 * @attribute expanded
24 * @type boolean
25 * @default false
26 */
27 expanded: false,
28
29 /**
30 * If true, the button will be disabled and greyed out.
31 *
32 * @attribute disabled
33 * @type boolean
34 * @default false
35 */
36 disabled: {value: false, reflect: true},
37 },
38
39 /**
40 * Event triggered when the expand button is clicked. Updates the expand
41 * property.
42 */
43 toggleExpanded: function() {
44 this.expanded = !this.expanded;
45 },
46 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698