question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pagination: when I set the options, the first page and last page button disappear

See original GitHub issue

How to make them work as normal? Is there an option?

render: function() {
    const options = {
      pageStartIndex: 1,
      sizePerPage: 20,
      prePage: '上一页',
      nextPage: '下一页',
      firstPage: '首页',
      lastPage: '末页',
      paginationShowsTotal: this.renderShowsTotal,
      hideSizePerPage: true,
      paginationSize: 6
    };
    return (
      <BootstrapTable data={this.props.data} ref='table' pagination options={options} striped hover>
        {this.props.children}
      </BootstrapTable>
    );
  }

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
caesarjulycommented, Dec 28, 2016

really appreciate it 👍

1reaction
AllenFangcommented, Dec 8, 2016

@caesarjuly, you assign a unknow sizePerPage as 20, but there no 20 in sizePerPage list default. The sizePerPage list default value is [ 10, 25, 30, 50 ], but you can custom it by sizePerPageList.

Anyway, I’ll find some solution to improve this condition

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix Pagination Error 'Buttons only showing up on the ...
I am trying to paginate a list of student elements into different pages. The buttons are only appending to the first page and...
Read more >
Pagination: what do you need the “last page” button for?
Given a list of URLs for articles, download the first page of each. · In each loaded page, look for a link to...
Read more >
Control pagination - Microsoft Support
On the Format menu, click Paragraph, and then click the Line and Page Breaks tab. Select the Page break before check box. Control...
Read more >
Pagination controls for first page and last page - Toolset
Problem: I would like to add first page / last page links in my pagination controls. Solution: There is a First / Last...
Read more >
Set pagination and line and page breaks in Pages on Mac
You can use formatting to control how text flows on the page. Line break: Use a line break, also called a soft return,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found