Multiple ThemeRoller

Multiple ThemeRoller

20cenz20cenz Posts: 2Questions: 0Answers: 0
edited October 2010 in General
Hi There!
First of all thanks for this amazing library.
I have a question: is it possible to have in the same page two datatables with bjquery=true and with two different themerollers?
I tried to modify the page basic_init/themes.html by coding two different tables (id="example1" and id="example2") and by importing the smoothless and ui-lightness themeroller css files. But the tables get the same themeroller (the last one).
Thanks for any kind of help

Replies

  • HernondoHernondo Posts: 3Questions: 0Answers: 0
    I have been searching for the same solution. 2 separate DataTables on the same page, and wanting to use seperate themeroller themes for each data table. I have each table in it's own , so if someone could help me figure out how to assign a css to each or to specify it in the DataTable directly, that would be awesome!

    Thanks.
  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    How would you do this with ThemeRoller for any other widget? I suspect you'll need to modify most if not all CSS selectors in the theme file to be prefixed by whatever is needed to target just the table you want. I don't think (might be wrong though) that ThemeRoller is particularly designed for running multiple different themes on the same page. Please correct me if I'm wrong.

    Allan
  • HernondoHernondo Posts: 3Questions: 0Answers: 0
    That's why I'm asking the expert! :) I have 2 tables, and I just want them to different color themes. Yes, I could go hack through it to do it, but thought the brilliant minds of the interwebs would have an easier solution.

    Thanks for the brilliant tool!
  • allanallan Posts: 63,761Questions: 1Answers: 10,510 Site admin
    This post from the folks that wrote ThemeRoller might be of some here: http://www.filamentgroup.com/lab/using_multiple_jquery_ui_themes_on_a_single_page/ . It looks like they've automated the process to make it nice and easy :-)

    Allan
This discussion has been closed.