Topic: How to apply nowrap in a Cell using db_pager
How can I apply formatting to a cell nowrap using db_pager
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Reporting → How to apply nowrap in a Cell using db_pager
How can I apply formatting to a cell nowrap using db_pager
Is date always the 5th column in function display_db_pager?
If it is you could use a nth child css selector?
If it is not always the same column, you would have to include the division(3rd line of same function) such as div#_doc_tbl_span(customer allocation) or div#_trans_tbl_span(customer transactions) to give a unique selector and change the nth child number accordingly; but its used 22 times, so possibly 22 different div# id's.
Edit: the above may affect other tables as well, so you would have to add an addition class:-
change
File: \includes\ui\db_pager_view.inc
115: label_cell(sql2date($cell), "align='center' nowrap"); break;
to
File: \includes\ui\db_pager_view.inc
115: label_cell(sql2date($cell), "align='center' nowrap class='mystyle'"); break;
Now 'mystyle' is unique; so can be formatted how you want
Or you can you use inline styling directly to the function
FrontAccounting forum → Reporting → How to apply nowrap in a Cell using db_pager
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.