custom paging

custom paging

testowniktestownik Posts: 21Questions: 10Answers: 0

Paging contains limited amount of numbers.

Is it possible to specify/define a set, that shows all numbers? I didn't found it, or misunderstood something.

I'm displaying 1 row per page, with customized display of columns, each row contains few long sentences of text.

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 2,808Questions: 85Answers: 406

    Hi testownik,

    sorry, that I failed to figure out what you mean.

    Hence I have a couple of questions:
    "Paging contains limited amount of numbers." Do you mean that the number of rows per page is limited?
    What is a "set"?
    Which "numbers" do you mean?
    Why does it matter if "each row contains few long sentences of text."
    Why are you only displaying one row per page? Normally a page would contain 10, 20 or 30 rows.

  • testowniktestownik Posts: 21Questions: 10Answers: 0
    edited November 2018

    Limitation like this: 1,2,3,4,5..., N.

    I'd like to see all page numbers instead of first/last few and one on opposite border.

    (sorry for my english)

  • kthorngrenkthorngren Posts: 20,302Questions: 26Answers: 4,769
    Answer ✓

    The built-in options are configured using pagingType. There are also some paging plugins here:
    https://datatables.net/plug-ins/pagination/

    I don't think there are any that display all the pages. You could take one and modify it to fit your needs. Maybe start with this one:
    https://datatables.net/plug-ins/pagination/simple_numbers_no_ellipses

    Kevin

  • testowniktestownik Posts: 21Questions: 10Answers: 0

    Okay, thanks, I will look into it.

This discussion has been closed.