Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    the best solution to this might be to use the wp_table_reloaded_cell_css_class filter to add a custom CSS class to a cell (based on some randomization).

    Another idea would be to generate random CSS code, to use something like

    .wp-table-reloaded-id-1 .row-3 .column-5 {...}

    where the 3 and 5 would be random. However, you would not be able to use this in the “Custom CSS” textfield, so it would have to be inserted into the page through some custom programming.

    Regards,
    Tobias

    Thread Starter techgodown

    (@techgodown)

    I have a thought may be you could help me implementing it.
    Like we use #colspan and #rowspan right in the cells, is it possible to use a kind of parameter say #highlight which highlights the cell with custom features like colors etc.
    Because using CSS class is not desired solution as there is 100’s of table which have 1000’s of cells.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    I don’t really think that this could be a good solution.
    Not only would it make rendering a table more complex, it also does not have full capabilities of CSS. And somehow the #highlight# code would have to be mapped back to either HTML or CSS, anyway.
    Thus, it would be simply to just enter HTML for the styling or to do it with CSS afterwards.

    Regards,
    Tobias

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Change a Cell color randomly’ is closed to new replies.