rstaib / jquery-bootgrid

Nice, sleek and intuitive. A grid control especially designed for bootstrap.
http://www.jquery-bootgrid.com
MIT License
973 stars 364 forks source link

pagination with bootstrap 4 #388

Closed RezaErfani67 closed 6 years ago

RezaErfani67 commented 6 years ago

pagination is not looks properly with bootstrap 4

canchito-dev commented 6 years ago

Hi, I ran into the same problem, and this worked for me. Hope it helps you too

$.extend($.fn.bootgrid.Constructor.defaults, {
        css: {
            pagination: "pagination",
            paginationButton: "page-link",
        },
    templates: {
            pagination: '<ul class="{{css.pagination}} pagination-sm"></ul>',
            paginationItem: '<li class="page-item"><a class="page-link" data-page="{{ctx.page}}">{{ctx.text}}</a></li>'
        }
});
mvcmaker commented 5 years ago

It's a pitty that bootgrid is so discontinued from the creator. Does anybody a working project like bootgrid that has mantainment and woks so fine as bootgrid? I'll think to change to that plugin. Thanks!

mvcmaker commented 5 years ago

@canchito-dev I don't know but your code doesn't works for me, only if I put your code inside the main grid object constructor, but I need to place on every grid I create. I place into the loaded event ($(function(){ ............ });)