Buy Now
Sign in

How to add html class to a table ROW, or programmatically to a CELL?

healyhatman , April 27 at 03:03
Answered
NickOg
Perhaps Max will pick up and add to the base set.
healyhatman
I sent my code to him via email. Hopefully he'll make a nicer version of it and add it in.
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman
T
Twincarb
@healyhatman,
Can you provide an example of putting this into action, with one of my tables I wish to colour a row depending on a value that isn't displayed on the table but is held within the function that is being displayed.​
​I presume that I would be looking at a php routine to check if the row contains the required value and then outputs the class based on it.
I have no idea if this is achievable or not, within the Functions area I have only ever used the read database functions!
healyhatman
{fn:some function}
The data you need should be stored in $this->get("table_name.row.model.field", "default");
Web developer at SkySpider.com.au
I don't work for ChronoEngine but I do accept donations paypal.me/healyhatman