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

🙏 Option to have line break on column names instead of ellipsis #2534

Closed
2 of 5 tasks
fmo-dev opened this issue Jan 30, 2024 · 2 comments
Closed
2 of 5 tasks

🙏 Option to have line break on column names instead of ellipsis #2534

fmo-dev opened this issue Jan 30, 2024 · 2 comments
Labels
🙏feature request 新需求支持 ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复

Comments

@fmo-dev
Copy link

fmo-dev commented Jan 30, 2024

🏷 Version

Package Version
@antv/s2 1.53.0
@antv/s2-react 1.45.0

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

I'm using PivotSheet and TableSheet in my React application. I've encountered an issue with long column names: when I reduce the size of a column, the name is truncated with an ellipsis. However, for better readability and data presentation, I would prefer if the long names wrapped to multiple lines within the column header instead of being truncated.

For example :

Column Name

Can become :

Column
Name

It would be very nice to have an option to choose the overflow style for column cell

🏞 What problem does this feature solve

This modification would allow users to view the full column names even in narrow columns, enhancing the user experience and data comprehension in scenarios with lengthy column headers.

@fmo-dev fmo-dev added the 🙏feature request 新需求支持 label Jan 30, 2024
@lijinke666 lijinke666 added the ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复 label Feb 5, 2024
Copy link
Contributor

github-actions bot commented Feb 5, 2024

你好 @fmo-dev,该功能或缺陷已经在 2.0 next 版本 中支持或修复,next 版本目前处于内测中, 感谢你的支持与理解。

如有任何 2.0 版本 问题,请前往讨论区,正式版预计年底发布 (文档施工中 🚧), 抢先试用:

yarn add @antv/s2@next  # pnpm add @antv/s2@next
yarn add @antv/s2-react@next  # pnpm add @antv/s2-react@next
yarn add @antv/s2-vue@next  # pnpm add @antv/s2-vue@next

Hello, @fmo-dev, This feature or flaw has been supported or fixed in 2.0 next version, next version is currently in private beta, thank you for your support and understanding.

Any 2.0 version issues, please go to discussion, which released the official version is expected to the end (document 🚧) during construction, the first trial:

@lijinke666
Copy link
Member

see https://codesandbox.io/p/sandbox/s2-next-ban-ben-duo-xing-wen-ben-shi-li-mhdghm

image

New English documentation in progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙏feature request 新需求支持 ✨ supported or fixed in 2.x 在 2.x 版本中,已支持该需求,或 bug 已修复
Projects
None yet
Development

No branches or pull requests

2 participants