toggleButtonClicked() {
    if (this.selectedItems.length === this.items.length) {
      this.set("selectedItems", []);
    } else {
      this.set("selectedItems", this.items);
    }

    if (this.filterValue != "") {
      this.filterValue = "";
    } else {
      // Reloads "dom-repeat".
      // TODO: Improve code related to reloading 'dom-repeat'.
      console.warn("Improve code related to reloading 'dom-repeat'.");
      microTask.run(function() {
        this.filterValue = "-";
        microTask.run(function() {
          this.filterValue = "";
        }.bind(this));
      }.bind(this));
    }
  }
/** Toggles selections, e.i either selects all items or none. */
Toggles selections, e.i either selects all items or none.
Toggles selections e . i either selects all items or none .
toggleButtonClicked() {
    if (this.selectedItems.length === this.items.length) {
      this.set("selectedItems", []);
    } else {
      this.set("selectedItems", this.items);
    }
    if (this.filterValue != "") {
      this.filterValue = "";
    } else {
      console.warn("Improve code related to reloading 'dom-repeat'.");
      microTask.run(function() {
        this.filterValue = "-";
        microTask.run(function() {
          this.filterValue = "";
        }.bind(this));
      }.bind(this));
    }
  }
toggleButtonClicked ( ) { if ( this . selectedItems . length === this . items . length ) { this . set ( "selectedItems" , [ ] ) ; } else { this . set ( "selectedItems" , this . items ) ; } if ( this . filterValue != "" ) { this . filterValue = "" ; } else { console . warn ( "Improve code related to reloading 'dom-repeat'." ) ; microTask . run ( function ( ) { this . filterValue = "-" ; microTask . run ( function ( ) { this . filterValue = "" ; } . bind ( this ) ) ; } . bind ( this ) ) ; } }
Toggles selections, e.i either selects all items or none.
Toggles selections e . i either selects all items or none .
// Reloads "dom-repeat". // TODO: Improve code related to reloading 'dom-repeat'.