How to left justify field in Table
How to left justify field in Table
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
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
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.
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.
Re: How to left justify field in Table
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
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.
Hope this helps.
Re: How to left justify field in Table
Thank You for that information. I will try it out!!
Michael
Michael
Re: How to left justify field in Table
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.
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.