ui.js
/**
     * Should be used as a callback for the filter input (onchange or onkeyup)
    * @param {string} column - Order results by column. If undefined the default column is used. If the same as current column, then order is flipped.
     */
Should be used as a callback for the filter input (onchange or onkeyup)
@param {string} column - Order results by column. If undefined the default column is used. If the same as current column, then order is flipped.
Should be used as a callback for the filter input ( onchange or onkeyup ) @param { string } column - Order results by column . If undefined the default column is used . If the same as current column then order is flipped .
filter(column) {
        document.body.scroll({ top: 0, left: 0, behavior: 'smooth' });
        if (column != undefined) {
            if (column === this.listOrder) {
                this.listDesc = !this.listDesc;
            } else {
                this.listOrder = column;
                this.listDesc = true;
            }
        }
        this.listPage = 1;
        var input = document.getElementById(this.searchInput).value;
        if (input.length === 0) {
            this.main.class().list(this.listPage, this.listOrder, this.listDesc);
        } else {
            this.main.class().filter(input, this.listPage, this.listOrder, this.listDesc);
        }
    }
filter ( column ) { document . body . scroll ( { top : 0 , left : 0 , behavior : 'smooth' } ) ; if ( column != undefined ) { if ( column === this . listOrder ) { this . listDesc = ! this . listDesc ; } else { this . listOrder = column ; this . listDesc = true ; } } this . listPage = 1 ; var input = document . getElementById ( this . searchInput ) . value ; if ( input . length === 0 ) { this . main . class ( ) . list ( this . listPage , this . listOrder , this . listDesc ) ; } else { this . main . class ( ) . filter ( input , this . listPage , this . listOrder , this . listDesc ) ; } }
Should be used as a callback for the filter input (onchange or onkeyup)
 @param {string} column - Order results by column.
Should be used as a callback for the filter input ( onchange or onkeyup ) @param { string } column - Order results by column .