I've tried to use a callback function to format a currency field on the table/list page (I added 'annual_salary' to the employees table in one of the examples). The callback function is as follows:
- Code: Select all
return '<span style="text-align:right">' . '$' . number_format($value, 2) . '</span>';
This style setting seems to be ignored in both Firefox and IE (other non-alignment styling works OK), so perhaps trying to set alignment inside a <td> does not work. Is there another workaround, or perhaps a way to gain access to the <td> tag instead before it's rendered?