Skip to content
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

Whether the header allows line breaks #930

Open
Progentalwf opened this issue Mar 22, 2024 · 3 comments
Open

Whether the header allows line breaks #930

Progentalwf opened this issue Mar 22, 2024 · 3 comments

Comments

@Progentalwf
Copy link

const columns = [ { title: "AAAA\nBBBB", allowWrapping: true, }, ... ]

@A-Posthuman
Copy link

I agree it would be nice if somehow the header text could be wrapped, and in a controllable way.

Also would be good if the headers could take a contentAlign or something to allow the text to be center or right aligned.

@portare
Copy link

portare commented Jun 20, 2024

@Progentalwf Did u find solution?

@BrianHung
Copy link
Collaborator

For contentAlign, you can implement that yourself using drawHeader API. Would love if the default drawHeader did support that field though. Text wrapping is a bit harder, just because headerHeight exists as an API already; I haven't dug into how allowWrapping in TextCells interact with rowHeight since that's a similar behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants