Styling and Custom classes

Styling and Custom classes

timc3timc3 Posts: 2Questions: 0Answers: 0
edited March 2010 in General
Hi,

Nice work on the datatables, but being new to JQuery and datatables I am wondering how to apply my custom classes to my table.

In http://datatables.net/styling/custom_classes you mention $.fn.dataTableExt.oStdClasses but I have little idea on how to change for instance sSortDesc to my custom class.

An example would be of great help.

Thanks

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    [code]
    $.fn.dataTableExt.oStdClasses.sSortDesc = "whatever_your_custom_class_is_called";
    [/code]
    will do the trick.

    Does that answer the question?

    Allan
  • timc3timc3 Posts: 2Questions: 0Answers: 0
    Certainly does.

    Thanks for that.
This discussion has been closed.