My Pagination no limit

function showListByNameFilter(vOffset){

        $("#scroll_contactlist").empty();
        $("#scroll_contactlist").append('<div class="spiner-example" style="height:20px;padding-top:1px;padding-bottom:10px">\n<div class="sk-spinner sk-spinner-circle">\n<div class="sk-circle1 sk-circle"></div>\n<div class="sk-circle2 sk-circle"></div>\n<div class="sk-circle3 sk-circle"></div>\n<div class="sk-circle4 sk-circle"></div>\n<div class="sk-circle5 sk-circle"></div>\n<div class="sk-circle6 sk-circle"></div>\n<div class="sk-circle7 sk-circle"></div>\n<div class="sk-circle8 sk-circle"></div>\n<div class="sk-circle9 sk-circle"></div>\n<div class="sk-circle10 sk-circle"></div>\n<div class="sk-circle11 sk-circle"></div>\n<div class="sk-circle12 sk-circle"></div>\n</div>\n</div>');
        offPrev = vOffset - 10;
        if(offPrev <= 0){
            offPrev = 0;
        }       
        offNext = vOffset + 10;
        range   = (vOffset + 1) + ' - ' + (vOffset + 10);

        sPrev = 'showListByNameFilter(' + offPrev + ')';
        sNext = 'showListByNameFilter(' + offNext + ')';

        var form_data = {       
            o : vOffset,
            i : $('#string-input-contact').val()
        }
        $.ajax({
           type : "POST",
           url  : "{{ url('Contact/contactManagementFilterName') }}",
           data : form_data,
           success: function(data) {            
                $("#scroll_contactlist").empty();
                $("#scroll_contactlist").html(data);
                $("#scroll_contactlist").show();
                $("#show-prev").attr("onclick",sPrev);
                $("#show-next").attr("onclick",sNext);
                $("#record-range").text(range);
                showContactCountFilter();
                checkIfCheckAll();
            },
           error: function(e){
                alert('Error: ' + e);
           }
         });
ContactManagement.volt

public function contactManagementFilterNameAction(){

    $offset     = $this->request->getPost("o");
    $strInput   = $this->request->getPost("i");

    $siteId       = $this->getSite();
    $contactList  = Contact::findManageContactByNameList($siteId,$offset,$strInput);
    $contactCount = Contact::findManageContactByNameCount($siteId,$strInput);

    foreach($contactCount as $item){
        $valCountFilter = $item->ContactCount;
    }

    $dataList    = [
        'contactList'=> $contactList,
        'valCountFilter' => $valCountFilter
    ];

    if ($this->request->isAjax()) {
        echo $this->view->getRender('Contact', 'contactManagementFilter', $dataList);
        return false;
    }
}
```

ContactController.php

How to be able to limit pagination if the data is gone.

This is a Phalcon forum. If you have a specific question about Phalcon's built-in pagination, feel free to ask. This is mostly Javascript so you're going to have better luck getting an answer on Stack Overflow