The HeadType has a property called shouldTruncate
As far as I understand, if I set it to true and give it a width which is smaller than the content given and also set dynamicTable to isFixedSize. it should then truncate the header content of the column.
But it seems no matter what you do, it doesn’t get applied
Interestingly, it does get applied to the table body
I don’t know if this is expected or not since it is not stated in the documentation or whatsoever.
I wish we could add the truncation with a tooltip to the header, since the current design choice is very poor and not ideal for a dynamic UI.
Hi, thanks for reporting this! We’ve been able to reproduce the issue with shouldTruncate not being applied to DynamicTable headers even when isFixedSize is set. We’ve raised an internal ticket to track the fix. We’ll update this thread when there’s progress.
Hi @SolomanWeng,
Greate news!
I have one more question. Is there any public Ticket which we can track?
Hi, we have create a public ticket here: Jira
really appreciate for reporting the bug.
Hi, @SolomanWeng,
Just wanted to add that I also tested this with@atlaskit/dynamic-table, and it shows the same behaviour. Not sure if this falls under the same Jira ticket or if it’s a separate issue — let me know what you think.
And thanks for the public ticket really appreciate to let us know when the issue is resolved.
hi, @MoizJamalia thanks for sharing that, I have updated ticket with that additional info.
These two issues should be fixed together.
Thanks so much !
Hi, @MoizJamalia thanks so much for reporting the issue.
I believe the bug is fixed now in UIKit, additionally the @atlaskit/dynamic-table is fixed in version 19.3.1 as well (Dynamic table - Changelog - Components - Atlassian Design) . thanks 