Own classes for dataTables elements.

Own classes for dataTables elements.

NickOverNickOver Posts: 4Questions: 2Answers: 0
edited July 2016 in Free community support

Hi.
Is any possibility to add own classes to elements generated by dataTables. Of course i can use addClass() but it isn't elegant solution. Here is link named "custom classes" but i cant find anything about it.
Thanks for help :)

I use 1.10.12

Answers

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    This is a list of all the classes that DataTables uses and you can modify them using $.fn.dataTable.ext.classes. Unfortunately they aren't well documented at the moment - that is something that will change in future. Is there a specific element you want to change the class of?

    Allan

  • NickOverNickOver Posts: 4Questions: 2Answers: 0

    Most i wanna add class to span element in pagination. Is exists that possibility?

  • allanallan Posts: 63,812Questions: 1Answers: 10,516 Site admin

    Use the sPageButton property.

    Allan

  • NickOverNickOver Posts: 4Questions: 2Answers: 0

    Thank you :)

This discussion has been closed.