<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — How to apply nowrap in a Cell using db_pager]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8158&amp;type=atom" />
	<updated>2019-05-20T13:41:05Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8158</id>
		<entry>
			<title type="html"><![CDATA[Re: How to apply nowrap in a Cell using db_pager]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34974#p34974" />
			<content type="html"><![CDATA[<p>Is date always the 5th column in function display_db_pager?</p><p>If it is you could use a nth child css selector?</p><p>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&#039;s.</p><br /><p>Edit: the above may affect other tables as well, so you would have to add an addition class:-</p><div class="codebox"><pre><code>change

File: \includes\ui\db_pager_view.inc
115:                 label_cell(sql2date($cell), &quot;align=&#039;center&#039; nowrap&quot;); break;

to 

File: \includes\ui\db_pager_view.inc
115:                 label_cell(sql2date($cell), &quot;align=&#039;center&#039; nowrap class=&#039;mystyle&#039;&quot;); break;</code></pre></div><p>Now &#039;mystyle&#039; is unique; so can be formatted how you want</p><br /><p>Or you can you use inline styling directly to the function</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2019-05-20T13:41:05Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34974#p34974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to apply nowrap in a Cell using db_pager]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=34970#p34970" />
			<content type="html"><![CDATA[<p>How can I apply formatting to a cell <strong>nowrap</strong> using db_pager</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-05-20T08:08:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=34970#p34970</id>
		</entry>
</feed>
