Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is pagination dots not showing?

I am using jquery.pagination.js plugin.

I have 100 pages. The first and last page are numbers are showing, but the dots are not showing. Please check the screen shot and code.

$("#Pagination").pagination(num_entries, {
    items_per_page : 10,
    num_display_entries : 2,
    num_edge_entries : 1,
    current_page : pageIndex-1,
    //link_to : path +"?"+param
    callback : paginationCallback
});

function paginationCallback(page_index, jq) {

}

enter image description hereenter image description here

Any default options having for show the dots symbol?

like image 296
RSKMR Avatar asked Nov 10 '22 02:11

RSKMR


1 Answers

HTML code:

<div id="selector">
    <ul class="selector">
        <li>
            <p>One</p>
        </li>
        <li>
            <p>Two</p>
        </li>
        <li>
        <p>Three</p>
        </li>
        <li>
            <p>Four</p>
        </li>
        <li>
            <p>Five</p>
        </li>
        <li>
            <p>Six</p>
        </li>
        <li>
           <p>Seven</p>
        </li>
        <li>
            <p>Eight</p>
        </li>
    </ul>
</div>

And JS Script:

$(function() {
        $(selector).pagination({
             items: 100,
             itemsOnPage: 10,
            cssStyle: 'light-theme'
        })
});

Here is a WORKING DEMO. I just added style and javascript sources from their github repo.

like image 138
Danis Avatar answered Nov 14 '22 21:11

Danis