Forum: Ruby on Rails Conditional background color of rows

Posted by Sumit Srivastava (Guest)
on 2012-12-10 08:35
(Received via mailing list)
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/r...

Regards,
Sumit
Posted by Jim ruther Nill (jimboker)
on 2012-12-10 08:37
(Received via mailing list)
On Mon, Dec 10, 2012 at 3:34 PM, Sumit Srivastava <
sumit.theinvincible@gmail.com> 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/r...


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.


> rubyonrails-talk+unsubscribe@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-....
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



--
Posted by sumit srivastava (Guest)
on 2012-12-10 08:40
(Received via mailing list)
On 10 December 2012 13:06, Jim Ruther Nill <jvnill@gmail.com> wrote:

>> columns. How shall I proceed. I went through following page on dataTables
>
Ok. Thanks anyways.
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.