src/Grid.php
public function addJsPaginatorInContainer($ipp, $containerHeight, $options = [], $container = null, $scrollRegion = 'Body')
    {
        $this->table->hasCollapsingCssActionColumn = false;
        $options = array_merge($options, [
          'hasFixTableHeader'    => true,
          'tableContainerHeight' => $containerHeight,
        ]);
        //adding a state context to js scroll plugin.
        $options = array_merge(['stateContext' => '#'.$this->container->name], $options);

        return $this->addJsPaginator($ipp, $options, $container, $scrollRegion);
    }
public function addJsPaginatorInContainer($ipp, $containerHeight, $options = [], $container = null, $scrollRegion = 'Body')
    {
        $this->table->hasCollapsingCssActionColumn = false;
        $options = array_merge($options, [
          'hasFixTableHeader'    => true,
          'tableContainerHeight' => $containerHeight,
        ]);
        //adding a state context to js scroll plugin.
        $options = array_merge(['stateContext' => '#'.$this->container->name], $options);

        return $this->addJsPaginator($ipp, $options, $container, $scrollRegion);
    }
public function addJsPaginatorInContainer ( $ ipp , $ containerHeight , $ options = [ ] , $ container = null , $ scrollRegion = 'Body' ) { $ this -> table -> hasCollapsingCssActionColumn = false ; $ options = array_merge ( $ options , [ 'hasFixTableHeader' => true , 'tableContainerHeight' => $ containerHeight , ] ) ; //adding a state context to js scroll plugin. $ options = array_merge ( [ 'stateContext' => '#' . $ this -> container -> name ] , $ options ) ; return $ this -> addJsPaginator ( $ ipp , $ options , $ container , $ scrollRegion ) ; }
Add dynamic scrolling paginator in container.
Use this to make table headers fixed.

@param int    $ipp             Number of item per page to start with.
@param int    $containerHeight Number of pixel the table container should be.
@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 in container . Use this to make table headers fixed .