src/Grid.php
public function addJsPaginator($ipp, $options = [], $container = null, $scrollRegion = 'Body')
    {
        if ($this->paginator) {
            $this->paginator->destroy();
            //prevent action(count) to be output twice.
            $this->paginator = null;
        }

        if ($sortBy = $this->getSortBy()) {
            $this->stickyGet($this->name.'_sort', $sortBy);
        }
        $this->applySort();

        $this->table->addJsPaginator($ipp, $options, $container, $scrollRegion);

        return $this;
    }
public function addJsPaginator($ipp, $options = [], $container = null, $scrollRegion = 'Body')
    {
        if ($this->paginator) {
            $this->paginator->destroy();
            //prevent action(count) to be output twice.
            $this->paginator = null;
        }

        if ($sortBy = $this->getSortBy()) {
            $this->stickyGet($this->name.'_sort', $sortBy);
        }
        $this->applySort();

        $this->table->addJsPaginator($ipp, $options, $container, $scrollRegion);

        return $this;
    }
public function addJsPaginator ( $ ipp , $ options = [ ] , $ container = null , $ scrollRegion = 'Body' ) { if ( $ this -> paginator ) { $ this -> paginator -> destroy ( ) ; //prevent action(count) to be output twice. $ this -> paginator = null ; } if ( $ sortBy = $ this -> getSortBy ( ) ) { $ this -> stickyGet ( $ this -> name . '_sort' , $ sortBy ) ; } $ this -> applySort ( ) ; $ this -> table -> addJsPaginator ( $ ipp , $ options , $ container , $ scrollRegion ) ; return $ this ; }
Add dynamic scrolling paginator.

@param int    $ipp          Number of item per page to start with.
@param array  $options      An array with js Scroll plugin options.
@param View   $container    The container holding the lister for scrolling purpose. Default to view owner.
@param string $scrollRegion A specific template region to render. Render output is append to container html element.

@throws Exception

@return $this
Add dynamic scrolling paginator .