I'm submitting a ... (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[x ] feature request
[ ] support request => Please do not submit support request here
Current behavior
No property to set text alignment for columns
Expected behavior
A property to determine whether the texk in column should be left, right or center aligned
What is the motivation / use case for changing the behavior?
Presentation of text and numeric data on a grid, eg Price list
Please tell us about your environment:
All
Table version: 4.0.0
Angular version: 2.2.3
Browser: [all ]
Language: [all]
Sounds like a good change. We should add the ability to define cssClass on the column and it be added to the header cell and body cell elements. Can you PR that?
Hello amcdnl,
Thanks for agreeing with my point. Please how do I "...PR that"?
Cheers
I see a first PR has been merged for this functionality, but I think it shouldn't be considered complete:
table is similarly called cssClasses and means something totally different.columns attribute, but there is not a cssClasses attribute for column elements.headerClasses and a cellClasses properties to discriminate, or just apply the classes to both header and cells, and then in CSS we are able to combine selectors to discriminate between header and cell if necessary.What do you think, @amcdnl ?
Done in 8.0
thanks handy for addition, but how would you use it now without resorting to deprecaged ::ng-deep ?
Most helpful comment
Done in 8.0