onRender() {
        this.paginator = new Paginator(this.element.querySelector("#admin-requests-paginator"), 1, 1);
        this.paginatorTop = new Paginator(this.element.querySelector("#admin-requests-paginator-top"), 1, 1);
        let that = this;

        this.paginatorTop.setOnPageChangeListener(function (page) {
            that.loadPage(page);
            that.paginator.update(page, that.paginatorTop.numPages);
        });
        this.paginator.setOnPageChangeListener(function (page) {
            that.loadPage(page);
            that.paginatorTop.update(page, that.paginator.numPages);
        });

        this.filter = new RequestsFilter("filter-modal", "filter");
        this.filter.setOnFilterListener(function (from, to, query, status) {
            that.filterRequests(from, to, query, status);
        });
    }
/**
     * When the component is rendered create the listener for the paginator events
     */
When the component is rendered create the listener for the paginator events
When the component is rendered create the listener for the paginator events
onRender() {
        this.paginator = new Paginator(this.element.querySelector("#admin-requests-paginator"), 1, 1);
        this.paginatorTop = new Paginator(this.element.querySelector("#admin-requests-paginator-top"), 1, 1);
        let that = this;
        this.paginatorTop.setOnPageChangeListener(function (page) {
            that.loadPage(page);
            that.paginator.update(page, that.paginatorTop.numPages);
        });
        this.paginator.setOnPageChangeListener(function (page) {
            that.loadPage(page);
            that.paginatorTop.update(page, that.paginator.numPages);
        });
        this.filter = new RequestsFilter("filter-modal", "filter");
        this.filter.setOnFilterListener(function (from, to, query, status) {
            that.filterRequests(from, to, query, status);
        });
    }
onRender ( ) { this . paginator = new Paginator ( this . element . querySelector ( "#admin-requests-paginator" ) , 1 , 1 ) ; this . paginatorTop = new Paginator ( this . element . querySelector ( "#admin-requests-paginator-top" ) , 1 , 1 ) ; let that = this ; this . paginatorTop . setOnPageChangeListener ( function ( page ) { that . loadPage ( page ) ; that . paginator . update ( page , that . paginatorTop . numPages ) ; } ) ; this . paginator . setOnPageChangeListener ( function ( page ) { that . loadPage ( page ) ; that . paginatorTop . update ( page , that . paginator . numPages ) ; } ) ; this . filter = new RequestsFilter ( "filter-modal" , "filter" ) ; this . filter . setOnFilterListener ( function ( from , to , query , status ) { that . filterRequests ( from , to , query , status ) ; } ) ; }
When the component is rendered create the listener for the paginator events
When the component is rendered create the listener for the paginator events