5 Polymer.PaperInkyFocusBehavior
10 'aria-checked': false,
16 * Fired when the checked state changes due to user interaction.
22 * Fired when the checked state changes.
28 * Gets or sets the state, `true` is checked and `false` is unchecked.
33 reflectToAttribute: true,
35 observer: '_checkedChanged'
39 * If true, the button toggles the active state with each tap or press
45 reflectToAttribute: true
49 attached: function() {
50 var trimmedText = Polymer.dom(this).textContent.trim();
51 if (trimmedText === '') {
52 this.$.checkboxLabel.hidden = true;
54 // Don't stomp over a user-set aria-label.
55 if (trimmedText !== '' && !this.getAttribute('aria-label')) {
56 this.setAttribute('aria-label', trimmedText);
61 // button-behavior hook
62 _buttonStateChanged: function() {
67 this.checked = this.active;
71 _checkedChanged: function(checked) {
72 this.setAttribute('aria-checked', this.checked ? 'true' : 'false');
73 this.active = this.checked;
74 this.fire('iron-change');
77 _computeCheckboxClass: function(checked) {
84 _computeCheckmarkClass: function(checked) {