Implement OCSP stapling in Windows BoringSSL port.
[chromium-blink-merge.git] / third_party / polymer / components-chromium / paper-radio-button / paper-radio-button-extracted.js
blob2e066ed5ee57215828c9d48c6270d16cb32c0d17
3 Polymer('paper-radio-button', {
5 /**
6 * Fired when the checked state changes.
8 * @event change
9 */
11 publish: {
12 /**
13 * Gets or sets the state, `true` is checked and `false` is unchecked.
15 * @attribute checked
16 * @type boolean
17 * @default false
19 checked: {value: false, reflect: true},
21 /**
22 * The label for the radio button.
24 * @attribute label
25 * @type string
26 * @default ''
28 label: '',
30 /**
31 * Normally the user cannot uncheck the radio button by tapping once
32 * checked. Setting this property to `true` makes the radio button
33 * toggleable from checked to unchecked.
35 * @attribute toggles
36 * @type boolean
37 * @default false
39 toggles: false,
41 /**
42 * If true, the user cannot interact with this element.
44 * @attribute disabled
45 * @type boolean
46 * @default false
48 disabled: {value: false, reflect: true}
51 eventDelegates: {
52 tap: 'tap'
55 tap: function() {
56 this.toggle();
57 this.fire('paper-radio-button-activate');
60 toggle: function() {
61 this.checked = !this.toggles || !this.checked;
64 checkedChanged: function() {
65 this.$.onRadio.classList.toggle('fill', this.checked);
66 this.setAttribute('aria-checked', this.checked ? 'true': 'false');
67 this.fire('change');
70 labelChanged: function() {
71 this.setAttribute('aria-label', this.label);
74 });