ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / ui / webui / resources / cr_elements / cr_button / cr_button.js
blob25b9842d2a0e7f9629cb7fe1a581f989e58ddc02
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. */
5 /**
6 * @fileoverview
7 * 'cr-button' is a chrome-specific wrapper around paper-button.
9 * Example:
11 * <cr-button>Press Here</cr-button>
12 * <cr-button raised>Raised Button</cr-button>
13 * <cr-button>
14 * <core-icon icon="favorite"></core-icon> Custom button
15 * </cr-button>
17 * @group Chrome Elements
18 * @element cr-button
20 Polymer('cr-button', {
21 publish: {
22 /**
23 * If true, the button will be styled with a shadow.
25 * @attribute raised
26 * @type boolean
27 * @default false
29 raised: {value: false, reflect: true},
31 /**
32 * If true, the button will be disabled and greyed out.
34 * @attribute disabled
35 * @type boolean
36 * @default false
38 disabled: {value: false, reflect: true},
40 });