volosoft / jtable

A JQuery plugin to create AJAX based CRUD tables.
http://www.jtable.org
1.1k stars 506 forks source link

Different color theme on child tables? #288

Open rr15516 opened 11 years ago

rr15516 commented 11 years ago

Hi, Good, good job! Is it possible have different color theme on child tables?

Thanks!

Xinne commented 11 years ago

check out row 4601 (jTable 2.3.0)

            //Apply theming as same as parent table unless explicitily set
            if (tableOptions.jqueryuiTheme == undefined) {
                tableOptions.jqueryuiTheme = self.options.jqueryuiTheme;
            }

So you should be able to use jqueryuiTheme in your childTable configuration.

Didn't try it, please let me know if it works like a charm! (or if it doesn't. Just let me know what happened after you've tried)

darylldawn commented 11 years ago

It worked for one level of master/child. Thank you. :)

However, I also have another child table within a child table. Are we limited to toggle between just the jqueryuiTheme and jTable theme? Or are there ways to implement several themes for several child tables? Thank you. :)

zdukenukem commented 11 years ago

Please can you be more specific on how to define theme for child table?

Cheers

Zdukenukem

maryum426 commented 10 years ago

Yeah can you be more specific on how to define theme for child table ?

sefcha commented 10 years ago

jqueryuiTheme:'jtable.2.4.0/themes/metro/orange/jtable.css',

dibacode commented 9 years ago

First you should remove the jtable.css and jquery-ui.css files of html headers ( if previously you've added ), so you create your custom css file( eg: jtable-style.css ), and then you start writing your CSS code.

Also I've created a premium flat theme for jtable, you can checkout it here.

jtable-premium-theme

goralpl commented 8 years ago

This is not working for me. The table headers aren't the theme that I specified in

jqueryuiTheme: 'jtable2.4.0/themes/metro/blue/jtable.min.css'