How to change Pagination Button classes

How to change Pagination Button classes

ajitbohraajitbohra Posts: 3Questions: 1Answers: 0

Can we change the pagination class

Default is "paginate_button" would like to change that to "button primary_button"

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,787Questions: 1Answers: 10,115 Site admin

    Try using the Bootstrap integration for DataTables. In the download builder select the Bootstrap library.

    Allan

  • ajitbohraajitbohra Posts: 3Questions: 1Answers: 0
    edited November 2016

    Thanks for the prompt reply. Not looking at bootstrap integration but rather setting custom class name. Is it something that can be done with bootstrap integration ?

    want to simply change the pagination class "paginate_button"

  • allanallan Posts: 61,787Questions: 1Answers: 10,115 Site admin
    Answer ✓

    This is where DataTables sets the class names for the paging buttons. You could use:

    $.fn.dataTable.ext.classes.sPageButton = 'button primary_button';
    

    before you initialise the table to modify that value.

    Allan

  • ajitbohraajitbohra Posts: 3Questions: 1Answers: 0

    Thanks a lot allan exactly what i was looking for :)

This discussion has been closed.