Welcome Guest, Not a member yet? Register   Sign In
add css class to current row using HTML Table Class
#7

[eluser]kulldox[/eluser]
[quote author="überfuzz" date="1251668523"]Mhmm. I haven't used the function you're referring. I would fix it with a if-statement. The code below isn't fancy, but you'll definitively understand it.

Code:
if(!$data['active'])
{
   $some_css_class = "normal_css";
}
else
{
   $some_css_class = "special_css";
}

html_output .= "<tr class=\"".$some_css_class." etc </tr>";

Hope you get my point, hope I've understand your issue. ;-)[/quote]

As I said previously, I know how to do it with raw HTML Big Grin. My question is how to do it with the Table Helper.


Messages In This Thread
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 04:23 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 05:18 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 05:22 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 05:36 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 09:22 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 10:42 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 10:47 AM
add css class to current row using HTML Table Class - by El Forum - 08-30-2009, 10:06 PM
add css class to current row using HTML Table Class - by El Forum - 08-31-2009, 09:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB