Is there any other way to display the page button(pagingType)?

Is there any other way to display the page button(pagingType)?

haeminhaemin Posts: 2Questions: 0Answers: 0

I am writing using a translator because I am not familiar with English. Please excuse me.

(https://datatables.net/reference/option/pagingType)
I'm displaying data using 'Data Tables' in a narrow area, and when I display a page button using [pagingType: "full_numbers"] a button is generated to deviate from the area, so I tried to adjust the number of page buttons.

And I declared below first to show 5 buttons at a time as follows.
$.fn.DataTable.ext.pager.numbers_length = 5;

However, the method includes the abbreviation expression (...) in the number of buttons, and the first page and the last page must be expressed unconditionally, so it is expressed as follows.

It's not like this
I want the page buttons to be represented as fixed as the number declared.

<< < 1 2 3 4 5 > >>
<< < 6 7 8 9 10 > >>
<< < 11 12 13 14 15 > >>
......

Is there any way to express it like this?

Replies

  • colincolin Posts: 15,237Questions: 1Answers: 2,598
    edited September 2023

    Take a look at this plugin, full numbers - no ellipses, this should do the trick.

    Colin

  • haeminhaemin Posts: 2Questions: 0Answers: 0

    Thank you Colin!!!!!

    That's the way I've been looking for.
    I really appreciate it.!!!!!

  • lambdawinner829lambdawinner829 Posts: 1Questions: 0Answers: 0

    There are multiple ways to do this, but I think Colin has already answered the question. I hope there are some helpful tools that can help vary the options though!

Sign In or Register to comment.