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

🙏行头or 列头支持自定义icon,icon希望支持hover事件 #821

Closed
yanhcao opened this issue Nov 24, 2021 · 2 comments
Closed
Assignees
Labels
🐛 bug 这个是一个 bug 🙏feature request 新需求支持

Comments

@yanhcao
Copy link

yanhcao commented Nov 24, 2021

🖋 Description

行头or 列头支持自定义icon,icon希望支持hover事件,目前只支持click事件

🏞 What problem does this feature solve

交叉表里面行头列头的部分字段需要给用户解释说明一下,解释说明的icon一般是hover触发提示tooltip🙏🙏

@yanhcao yanhcao added the 🙏feature request 新需求支持 label Nov 24, 2021
@wjgogogo wjgogogo added the 🐛 bug 这个是一个 bug label Feb 9, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2022

你好 @yanhcao,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @yanhcao, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

@xingwanying xingwanying self-assigned this Feb 23, 2022
@xingwanying
Copy link
Member

xingwanying commented Feb 23, 2022

原生可以监听 S2Event.GLOBAL_ACTION_ICON_HOVER事件,react 组件可以使用 onActionIconHover 回调函数

  <SheetComponent dataCfg={dataCfg} options={s2Options} onActionIconHover={(data) => {console.log(data)}} />,

https://s2.antv.vision/en/docs/api/components/sheet-component/#spreadsheetprops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug 这个是一个 bug 🙏feature request 新需求支持
Projects
None yet
Development

No branches or pull requests

3 participants