client/public/elements/components/pagination.js
/**
   * @method handleClick
   * @description Event handler for element click. Changes the active page.
   * Dispatches the 'changed-page' event
   * 
   * @param {Event} target - element that was clicked on
   */
@method handleClick
@description Event handler for element click. Changes the active page.
Dispatches the 'changed-page' event

@param {Event} target - element that was clicked on
@method handleClick @description Event handler for element click . Changes the active page . Dispatches the ' changed - page ' event @param { Event } target - element that was clicked on
handleClick(target) {
    let new_page = parseInt(target.getAttribute('page'));
    if (new_page != this.currentPage) {
      this.currentPage = new_page;
      this.dispatchEvent(this._changedPage);
    }
  }
handleClick ( target ) { let new_page = parseInt ( target . getAttribute ( 'page' ) ) ; if ( new_page != this . currentPage ) { this . currentPage = new_page ; this . dispatchEvent ( this . _changedPage ) ; } }
@method handleClick
 @description Event handler for element click.
@method handleClick @description Event handler for element click .