Replace pagination numbers by custom text

Replace pagination numbers by custom text

Js000Js000 Posts: 2Questions: 1Answers: 0

Hi Allan,
I need to replace the pagination numbers by custom text:
Instead of: 1, 2, 3 --> PageName1, PageName2, PageName3,...
Is there any way to display it in that way?
Thank you very much in advance,
J

Answers

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin

    You'd need to write a full custom paging plug-in. There are a few examples here that you could use as the basis for such a plug-in.

    Perhaps an easier option would be to listen for the draw event and then just modify the paging buttons that DataTables draws.

    Allan

  • Js000Js000 Posts: 2Questions: 1Answers: 0

    Thank you very much Allan for the clarification, I will give it a try then...
    Regards,
    J

This discussion has been closed.