Use as table row css class

Status
Not open for further replies.

sergio

New Member
Hi guys

rif: http://fabrikar.com/forums/showthread.php?t=8564

The use of this feature is very useful; now, found that the css classes are case sensitive, if I would use a field that contain a number (the reason is that I wont to color the row that contain "quantity = 0") the class ".0"(zero) don't work, while the class ".forni" for exmple it works fine!...

what can I do?

tnxxxxxxx
 
Hmmmmmmm.

Yup, that's a problem. CSS classes have to start with a letter, not a number.

I've added a special case to the _buildRowClasses() function that will convert any single digit values into their English equivalent word, so '0' will add a class of 'zero', '3' will add a class of 'three', etc. Note that this only works for single digit numbers. A complete 'numbers to words' function would be possible, but not in a 2 minute quick fix. :)

Update to the latest SVN, and see if it works for you. NOTE I haven't tested this change, so please let me know how you get on!

-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top