Page 1 of 1
How to left justify field in Table
Posted: 2013-10-30 14:23
by mgain2013
I need to know how to left justify a field(combo lookup field) in a table in under Appgini v 5.20. In the older version you would change the "TableBodyNumeric" to "TableBody". I have noticed the new version does not use this. I tried changing "text-right" to "text-left" but this didn't work. Can anyone help me out with this?
Re: How to left justify field in Table
Posted: 2014-02-04 19:45
by KSan
Were you able to find an answer to your question? I would love to find out how to do this as well.
Re: How to left justify field in Table
Posted: 2014-02-08 13:27
by a.gneady
As of AppGini 5.21, you can set field alignment directly in AppGini without code modifications. Just select a field, and choose the desired alignment from the "Alignment" drop down.
Re: How to left justify field in Table
Posted: 2014-02-08 23:20
by KSan
Great!!! Thank you very much for the update. Still going through the new version and trying to learn how to adapt and make the best of new features.
Re: How to left justify field in Table
Posted: 2014-03-13 16:21
by pilandros
But, If you need to align the "caption" of a field say to the center, you may type "<div align=center>your-caption</div>" in the caption text. Although it will display different or strange in the center of the left column-of-captions in the detail-view for that field. But you will get a nice table-view display for those columns where you need them to be aligned different than the default left-alignment.
Hope this helps.
Re: How to left justify field in Table
Posted: 2014-03-16 23:37
by mgain2013
Thank You for that information. I will try it out!!
Michael
Re: How to left justify field in Table
Posted: 2014-04-05 11:07
by adz1111
Hi
Good workaround - but is there a way where you can specify header alignment? As suggested in the above workaround it is great for the table view but does make the detail view look a tad odd. The only way around that I can see is to use the tablename_dv hook in tablename.php and replace the HTML for all "centered" labels with the non-centered equivalents... do-able, but a bit of a pain
Would be great in future releases if, as well as the data alignment AppGini offers, it also had an equivalent table header alignment dropdown - and even better offer dropdowns of both for Table view as well as detail view for full flexibility.
