| OLD | NEW |
| (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> | |
| 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 }); | |
| OLD | NEW |