I have a simple table example from angular material site. Is there any way how to make it's colums width based on longest cell's content? Something like same size items but applied on table columns.
Asked
Active
Viewed 885 times
4
-
What have you tried? Insert your code. – Edric Aug 23 '17 at 10:12
-
I olny tried table example from angular material siete, and setting class to ng-container ... but I found out that ng-container will not be rendered so error occurred . – tprieboj Aug 24 '17 at 07:00
-
You can check ngx-datatable (https://github.com/swimlane/ngx-datatable) project. It is very similar and probably it will easy to migrate to material when it provides more features for data table. – Julia Passynkova Aug 30 '17 at 20:00