Page 1 of 1

How to Change Position of Column Label?

Posted: 2020-10-23 05:34
by mohamed
Hello,

I am wondering How to change the position of the Column Label from default Left to Center and Right.

I have noticed this code of one of the columns as an example with the Label "DOOR", by default its always on the Left side of the Cell.


1. How to change the position to Center and Right of the cell ?

and

2. Do I need jut do the change in one file Projects_templateDV.html in my case ?


---
I have Here is the code of the column on the right, in Projects_templateDV.html
-----

<div class="form-group">
<hr class="hidden-md hidden-lg">
<label for="Door_Name" class="control-label col-lg-3" data-parent_link="view_parent_modal">DOOR</label>
<div class="col-lg-9">
<div class="form-control-static" style="white-space: nowrap; overflow-x: hidden;"><%%COMBO(Door_Name)%%><%%PLINK(Door_Name)%%><%%ADDNEW(Door)%%></div>
</div>
</div>

Re: How to Change Position of Column Label?

Posted: 2020-10-23 20:57
by pbottcher
Hi,

you can do that via the hooks/TABLENAME-tv-js file.

Add:

Code: Select all

$j(function() {
$j('th').css('text-align','center');
})

Re: How to Change Position of Column Label?

Posted: 2020-10-24 07:47
by mohamed
Hi pböttcher

its just perfect .. THANK YOU VERY MUCH :)