-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column width #134
Comments
I'm facing the same issue. @FaisalAriyanto you are asking about a "quick" way. It seems you have a workaround or..? |
@PrazSam My bad way to set width: ngAfterViewInit() { |
Since there are no any other way yet, this is the greatest way. @FaisalAriyanto Thanks for saving my day. |
@FaisalAriyanto i want to ask, do u know how to add overflow-x , inside tbody, i've added in css but not working |
@alifatic Why overflow-x just for tbody ? I don't know what you really looking for. If you are trying to make the table horizontally scrollable, just use table inside a div and make it scrolable.
you may use min width for the table.
|
You can also use css class in column or just insert data in html type and define width there. |
@FaisalAriyanto I was trying your workaround below where Region is my column name. I placed the function in the component.ts file. It didn't seem to take any effect. Did I miss anything? I'm looking for a way to set the width of each column, or alternatively configure it so that the column width accommodates the text value inside the cells full but don't wrap to the next row (go horizontally across, not wrap to the next row. Thank you for your help! ngAfterViewInit() { |
@ManpreetSingh80 I tried adding class: 'wide' to the column setting, it doesn't take effect either. I think I'm missing something... settings = { |
@sushanzh You can try html type
|
@sushanzh Maybe ngAfterViewInit cannot find your table, i run script there because i expect that table show in DOM and can find column name and change width manual by javascript. |
@FaisalAriyanto and @ManpreetSingh80 thank you for your replies. I have tried again, and the html type method works for me! Thank you!!! |
thanks to @ishansinghania |
Thanks, man you help me a lot. |
Is there a way to quickly setup the width for each colom?
The text was updated successfully, but these errors were encountered: