Conditional background color of rows

24 views
Skip to first unread message

Sumit Srivastava

unread,
Dec 10, 2012, 2:34:09 AM12/10/12
to rubyonra...@googlegroups.com
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

Jim Ruther Nill

unread,
Dec 10, 2012, 2:36:30 AM12/10/12
to rubyonra...@googlegroups.com
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.
 


Regards,
Sumit

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-ta...@googlegroups.com.
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.
 
 



--
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.com

sumit srivastava

unread,
Dec 10, 2012, 2:38:44 AM12/10/12
to rubyonra...@googlegroups.com
On 10 December 2012 13:06, Jim Ruther Nill <jvn...@gmail.com> wrote:



On Mon, Dec 10, 2012 at 3:34 PM, Sumit Srivastava <sumit.the...@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/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.

Ok. Thanks anyways.
 
Reply all
Reply to author
Forward
0 new messages