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.
7 * 'cr-button' is a chrome-specific wrapper around paper-button.
11 * <cr-button>Press Here</cr-button>
12 * <cr-button raised>Raised Button</cr-button>
14 * <iron-icon icon="favorite"></iron-icon> Custom button
17 * @group Chrome Elements
25 * If true, the button will be styled with a shadow.
30 reflectToAttribute: true
34 * If true, the button will be disabled and greyed out.
39 reflectToAttribute: true
43 * If true, clicking the button toggles the active state.
56 * If true, the button is in the active state. Mostly useful when
67 computeNoInk_: function() {
68 return this.toggles || this.noink;