Topic: How to apply nowrap in a Cell using db_pager

How can I apply formatting to a cell nowrap using db_pager

www.boxygen.pk

2 (edited by poncho1234 05/20/2019 02:20:25 pm)

Re: How to apply nowrap in a Cell 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

The FrontAccounting Wiki(Manual, examples, tips, setup info, links to accounting sites, etc) https://frontaccounting.com/fawiki/