ThemeRoller highlight and select styles for headers?
ThemeRoller highlight and select styles for headers?
JQuery and DataTables newbie here. Absolutely brilliant plugin, and combined with JQueryUI it has saved me days of work. One question that I cannot figure out, though: It seems that when applying a ThemeRoller style to a DataTable, the table headers only get the default ThemeRoller style. I expected them to also have the highlight and selected styles, just like any other JQueryUI Button or Tab or Accordion...I don't see this functionality working on the DataTables ThemeRoller example page either...or am I just totally clueless and missing something obvious?
Thanks.
r e n
Thanks.
r e n
This discussion has been closed.
Replies
[code]
$what.find('th').hover(
function () {
$(this).addClass("ui-state-hover");
},
function () {
$(this).removeClass("ui-state-hover");
}
);
$what.find('th').click(
function () {
$(this).siblings().removeClass("ui-state-active");
$(this).addClass("ui-state-active");
}
);
[/code]
($what is just a contextual indicator as I am doing this inside a function, since I initialize various tables per page.)
Anyway this behavior for ThemeRoller as default I think would be great, no?
Thanks again.