How to left justify field in Table

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
mgain2013
Posts: 29
Joined: 2013-02-16 16:12

How to left justify field in Table

Post by mgain2013 » 2013-10-30 14:23

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?

KSan
AppGini Super Hero
AppGini Super Hero
Posts: 252
Joined: 2013-01-08 20:17

Re: How to left justify field in Table

Post by KSan » 2014-02-04 19:45

Were you able to find an answer to your question? I would love to find out how to do this as well.

User avatar
a.gneady
Site Admin
Posts: 1287
Joined: 2012-09-27 14:46
Contact:

Re: How to left justify field in Table

Post by a.gneady » 2014-02-08 13:27

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.
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

KSan
AppGini Super Hero
AppGini Super Hero
Posts: 252
Joined: 2013-01-08 20:17

Re: How to left justify field in Table

Post by KSan » 2014-02-08 23:20

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.

User avatar
pilandros
Veteran Member
Posts: 93
Joined: 2014-02-13 18:19

Re: How to left justify field in Table

Post by pilandros » 2014-03-13 16:21

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.

mgain2013
Posts: 29
Joined: 2013-02-16 16:12

Re: How to left justify field in Table

Post by mgain2013 » 2014-03-16 23:37

Thank You for that information. I will try it out!!

Michael

adz1111
Posts: 12
Joined: 2014-03-31 12:24

Re: How to left justify field in Table

Post by adz1111 » 2014-04-05 11:07

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.

:-)

Post Reply