Dmitriy Kupriyanov
Dmitriy Kupriyanov

Reputation: 479

BootstrapTable don't work pagination

I want use BootstrapTable extension but not config pagination.

$('#table').bootstrapTable({
    data: data,
    oprions :
            {
      pagination: true,
      pageNumber: 2,
      pageSize: 3,
      pageList: [2, 25, 50, 100]
        }
});

Options just not apply http://jsfiddle.net/3ev13xoc/ Why?

Upvotes: 0

Views: 432

Answers (1)

Kevin Quach
Kevin Quach

Reputation: 221

Your table options should come during your bootstrapTable declaration and without the object you have it in so it looks like this:

$(function () {
    $('#table').bootstrapTable({
        data: data,
        pagination: true,
        pageNumber: 2,
        pageSize: 3,
        pageList: [2, 25, 50, 100]
    });
});

http://jsfiddle.net/eapannk6/

Upvotes: 1

Related Questions