Filter on TH

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: April 3, 2013   (RSS)

By Djulia - April 3, 2013

Hi,

Is it possible to use a filter on the tags TH of the pages lists?

I tested the following code, but that does not function.

addFilter('listRow_thStyle', '_alignThOnList', null, 3);

function _alignThOnList($thStyle, $tableName, $fieldname) {
  ...
  if ($fieldname = 'num_value') { $thStyle = "text-align:right;"; }
  return $thStyle;
}


Thanks for your assistance.

Djulia

By Djulia - April 3, 2013

Hi Greg,

It is perfect! :)

Thanks!

Djulia