missing underscore in docs?

missing underscore in docs?

lheredysazzelheredysazze Posts: 6Questions: 0Answers: 0
edited October 2013 in Web-site
https://datatables.net/usage/options

sPaginationType reads:
DataTables features two different built-in pagination interaction methods ('twobutton' or 'fullnumbers') which present different page controls to the end user. Further methods can be added using the API (see below).

In the example expanded, it reads: "sPaginationType": "full_numbers"

There seems to be a discrepancy between the two. It also says the default is two_button which is also not the same as above because of the underscores.

---

On this topic, is it possible to specify the width of the full_numbers pagination bar? My table is easily 600px wide, which would be more than enough to show the 15 pages without needing to 'scroll' through the page numbers, but for some reason the pagination bar defaults to somewhere around 200px, showing only 6 pages.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    edited October 2013
    Thanks for spotting that and letting me know. A markdown error, now fixed :-).

    > On this topic, is it possible to specify the width of the full_numbers pagination bar?

    As in the number of pages? Yes, you can use `$.fn.dataTable.ext.oPagination.iFullNumbersShowPages` and set that to the number of pages you want shown. The default is 5.

    Allan
  • lheredysazzelheredysazze Posts: 6Questions: 0Answers: 0
    edited October 2013
    That is excellent, Thank you!

    [code]$.fn.dataTable.ext.oPagination.iFullNumbersShowPages = 25; //perfect![/code]
This discussion has been closed.