6 Polymer.PaperInkyFocusBehavior
11 'aria-checked': false,
17 * Fired when the checked state changes due to user interaction.
23 * Fired when the checked state changes.
29 * Gets or sets the state, `true` is checked and `false` is unchecked.
34 reflectToAttribute: true,
36 observer: '_checkedChanged'
40 * If true, the button toggles the active state with each tap or press
46 reflectToAttribute: true
51 if (Polymer.dom(this).textContent == '') {
52 this.$.checkboxLabel.hidden = true;
54 this.setAttribute('aria-label', Polymer.dom(this).textContent);
59 // button-behavior hook
60 _buttonStateChanged: function() {
65 this.checked = this.active;
69 _checkedChanged: function(checked) {
70 this.setAttribute('aria-checked', this.checked ? 'true' : 'false');
71 this.active = this.checked;
72 this.fire('iron-change');
75 _computeCheckboxClass: function(checked) {
82 _computeCheckmarkClass: function(checked) {