Set the TD attributes of cells Default: Define cell attributes on a column by column basis.
$lens->tdLens = 'col1^nowrap^col2^bgcolor=red';
You can also set an attribute for all columns using the field name '*':
$lens->tdLens = '*^nowrap;field1^class=num-class nowrap';
In the above example, all fields are set to nowrap. Note that we have to define the nowrap for field1 because the field1 definition overrides the global * defintion.
To dynamicly modify the cell color, you should still use the colorLens property as this property does not allow you to reference cell values or call PHP code dynamically. Basic:Yes Advanced/Enterprise:Yes DynamicEdit:Yes [Version 2.6.0]
|