Query Column Header Alignment Question

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
RentProperty
Posts: 345
Joined: Mon Nov 12, 2012 9:08 pm
Location: South Africa

Query Column Header Alignment Question

Post by RentProperty »

Is there a way to Align the Table Column Headers with the actual Content?

It seems like, as a rule, Text is aligned left, Dates are aligned Center, and Numbers are aligned right in the Query tables... However ALL the headers are aligned left. It would look a lot cleaner if the Column header can have the same alignment as the actual data.

Has anyone noticed this and found a solution for this before? :-)
Hein Hanekom & Werner Hanekom
Sinov8.net
AwareIM Version 5.9 | 6.0 | 7.0 | 7.1 (Windows EC2 R2012 & MySQL)
Jhstephenson
Posts: 303
Joined: Wed Apr 22, 2015 11:44 pm

Re: Query Column Header Alignment Question

Post by Jhstephenson »

I have the same question. Are there any examples of how to do this?
Jaymer
Posts: 2489
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Query Column Header Alignment Question

Post by Jaymer »

Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jhstephenson
Posts: 303
Joined: Wed Apr 22, 2015 11:44 pm

Re: Query Column Header Alignment Question

Post by Jhstephenson »

So, nothing right now, but there is hope?
johntalbott
Posts: 619
Joined: Wed Jun 17, 2015 11:16 pm
Location: Omaha, Nebraska
Contact:

Re: Query Column Header Alignment Question

Post by johntalbott »

It's not out of the box, but ...

Query Init Script:

Code: Select all

config.columns.map(function(column){column.headerAttributes = {style: column.attributes.style}})
VocalDay Solutions - Agility - Predictability - Quality

We specialize in enabling business through the innovative use of technology.

AwareIM app with beautiful UI/UX - https://screencast-o-matic.com/watch/crfUrrVeB3t
Jaymer
Posts: 2489
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Query Column Header Alignment Question

Post by Jaymer »

guys, you can already do this.
its in my post, actually, that i referred to.
I made a pic of a suggestion to make it easier.

click one of those attributes
click edit
click Column Header Style...
add alignment
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jhstephenson
Posts: 303
Joined: Wed Apr 22, 2015 11:44 pm

Re: Query Column Header Alignment Question

Post by Jhstephenson »

Thanks Jaymer,

As a side to that...

Is it possible to override the location of the actual data element on the grid? So, that Yes/No or Date fields get left justified instead of centered, or a Numeric is centered instead of right justified.

The column settings options that you mentioned seem to only apply to the Headers, not the actual data.
Jaymer
Posts: 2489
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Re: Query Column Header Alignment Question

Post by Jaymer »

Jim
You set Alignment for data in the field setup. "Styles" property
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply