• In a previous post (now resolved) Tobias wrote:

    ” …cannot directly color cells depending on the data in them – this would require JavaScript.”

    Can Tobias or someone give me some direction on how that could be done?

    Is there an option in DataTables?

    I am unfamiliar with DataTables. What is a good starting point?

    I can edit some JavaScript but not good at creating!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    unfortunately, I don’t have any direct example code, but you might want to start by learning some jQuery, as that will make writing the JavaScript much easier.

    With jQuery you can then either use existing filter functions (see their docs), or loop through the table your self, search for what you are looking and eventually style that by applying CSS through jQuery as well.

    This is not related to or depending on the DataTables library, so you won’t have to learn about that.

    Regards,
    Tobias

    Thread Starter martal

    (@martal)

    Thanks, Tobias. I’ve made a start on that and will post a working solution.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: WP-Table Reloaded] Style cells depending on the data’ is closed to new replies.