themeroller does not work for table content

themeroller does not work for table content

shaishai Posts: 7Questions: 0Answers: 0
edited June 2011 in General
Hi,

i am very pleased with the datatable, keep up the good work.
Enabling the themereoller seems quite straight forward and it works partially. The only thing that doesnt change is the table content. I have styled the table with the class="display" and used the demo_table_jui.css from the download.

what do i have to do to include the content of the table into the theme? its always this violett/white row change.

greez

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    The current ThemeRoller does not have any concept of what to do with odd / even rows since there is no table component in jQuery UI yet (presumably this will change when they integrate the one they are currently working on).

    As such you need to specify the background colour to want using some trivial CSS:

    [code]
    tr.odd { background-color: red }
    tr.even { background-color: blue }
    [/code]

    That will look horrible in fairness - but that's the general idea :-)

    Allan
This discussion has been closed.