client/public/elements/components/download-list.js
/**
   * @method _onMainClick
   * @description Attached to click event on dropdown. Opens/closes dropdown.
   */
@method _onMainClick
@description Attached to click event on dropdown. Opens/closes dropdown.
@method _onMainClick @description Attached to click event on dropdown . Opens / closes dropdown .
_onMainClick(){
    if (this.opened) {
      this.opened = false;
    }
    else {
      this.dropOnLeft = (this.offsetLeft / window.innerWidth) < .5 ? true : false;
      this.opened = true;
      this.shadowRoot.getElementById('dropdown').open();
    }
  }
_onMainClick ( ) { if ( this . opened ) { this . opened = false ; } else { this . dropOnLeft = ( this . offsetLeft / window . innerWidth ) < .5 ? true : false ; this . opened = true ; this . shadowRoot . getElementById ( 'dropdown' ) . open ( ) ; } }
@method _onMainClick
 @description Attached to click event on dropdown.
@method _onMainClick @description Attached to click event on dropdown .