Conditional background color of rows

Hi,

I am using dataTables to render my content onto a view. I need to change
the background color of a row depending upon ratio of values of two
columns. How shall I proceed. I went through following page on
dataTables
website but it didn’t work for me.

http://www.datatables.net/examples/advanced_init/row_callback.html

Regards,
Sumit

On Mon, Dec 10, 2012 at 3:34 PM, Sumit S. <
[email protected]> wrote:

Hi,

I am using dataTables to render my content onto a view. I need to change
the background color of a row depending upon ratio of values of two
columns. How shall I proceed. I went through following page on dataTables
website but it didn’t work for me.

http://www.datatables.net/examples/advanced_init/row_callback.html

I haven’t used datatables before but I personally think that this
question
is not in any way
related to rails. So you’d get better answers there. But if someone
has
already used it and
is willing to answer, then lucky you.

[email protected]
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/SphOItz_338J.
For more options, visit https://groups.google.com/groups/opt_out.

On 10 December 2012 13:06, Jim Ruther N. [email protected] wrote:

columns. How shall I proceed. I went through following page on dataTables

Ok. Thanks anyways.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs