-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
DataTable Header Text Wrap #848
DataTable Header Text Wrap #848
Comments
We can add a |
Yeah sure will work on one. |
@rjsajnani1 This is our Contributing Guide |
If no one is working on this issue I would like to work on it |
@Taym95 Feel free to send PR :) |
Hi the multi line has been supported but the height of the text is constant to 24, so when doing multi line only first line is shown. |
This issue still persists any suggestions to make resolve it ? |
are there any updates on this issue? the numberOfLines property does not work and there's no option to change the font size of the header |
@rjsajnani1 how do u use this prop? there doesn't appear to be an changes visible Edit: I got it to work in the end, but no such thing exists for DataTable.Cell |
@Zeyu-Li I feel like I must be missing something. I cannot get a multiline to work with Can someone post an actual little snippet that is confirmed working? I'd really appreciate it. Thanks! |
Without this, it does not appear the numberOfLines prop has an effect, as noticed in callstack#848 and callstack#863 With this, it appears to work exactly as expected.
Without this, it does not appear the numberOfLines prop has an effect, as noticed in callstack#848 and callstack#863 With this, it appears to work exactly as expected. Text components require special alignment treatment with word wrapping. Normally a word wrap will force text alignment to flex-start. So we align directly when number of lines is > 1, while respecting the numeric property and it's interaction with RTL languages
I think I repaired the original implementation so that it handles text component's special text alignment issues with wrapping, while allowing a cell height that is a multiple of numberOfLines - patch-package patch available here for testing: #3015 (comment) |
Without this, it does not appear the numberOfLines prop has an effect, as noticed in callstack#848 and callstack#863 With this, it appears to work exactly as expected. Text components require special alignment treatment with word wrapping. Normally a word wrap will force text alignment to flex-start. So we align directly when number of lines is > 1, while respecting the numeric property and it's interaction with RTL languages
My PR attempting to address this is release now in 4.12.0, hopefully it works for everyone! |
Current behaviour
Unable to wrap the header title
Expected behaviour
I would like to add some style or atleast try to wrap the header title like the given image below
Your Environment
Any help is much appreciated.
The text was updated successfully, but these errors were encountered: