src/jsPaginator.php
public function onScroll($fx = null)
    {
        if (is_callable($fx)) {
            if ($this->triggered()) {
                $page = $this->getPage();
                $this->set(function () use ($fx, $page) {
                    return call_user_func_array($fx, [$page]);
                });
            }
        }
    }
public function onScroll($fx = null)
    {
        if (is_callable($fx)) {
            if ($this->triggered()) {
                $page = $this->getPage();
                $this->set(function () use ($fx, $page) {
                    return call_user_func_array($fx, [$page]);
                });
            }
        }
    }
public function onScroll ( $ fx = null ) { if ( is_callable ( $ fx ) ) { if ( $ this -> triggered ( ) ) { $ page = $ this -> getPage ( ) ; $ this -> set ( function ( ) use ( $ fx , $ page ) { return call_user_func_array ( $ fx , [ $ page ] ) ; } ) ; } } }
Callback when container has been scroll to bottom.

@param null|callable $fx
Callback when container has been scroll to bottom .