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

echarts的toolbox自定义图标如何触发toolbox的事件? #10791

Closed
curryhh opened this issue Jul 3, 2019 · 5 comments
Closed

echarts的toolbox自定义图标如何触发toolbox的事件? #10791

curryhh opened this issue Jul 3, 2019 · 5 comments
Labels

Comments

@curryhh
Copy link

curryhh commented Jul 3, 2019

What problem does this feature solve?

自定义图标触发toolbox

What does the proposed API look like?

dispatchAction也没有这个功能

3696448094-5d1c26fca5c48_articlex
如上图自定义的图标怎么去触发toolbox的事件

@echarts-bot
Copy link

echarts-bot bot commented Jul 3, 2019

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that you have posted enough image to demo your request. You may also check out the API and chart option to get the answer.

Have a nice day! 🍵

@echarts-bot echarts-bot bot added new-feature pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Jul 3, 2019
@Ovilia
Copy link
Contributor

Ovilia commented Jul 3, 2019

如果是想响应 toolbox 自定义图标事件的话,通过 onclick 事件就行 https://echarts.apache.org/zh/option.html#toolbox.feature

@Ovilia Ovilia added support waiting-for-author and removed new-feature pending We are not sure about whether this is a bug/new feature. waiting-for-help labels Jul 3, 2019
@curryhh
Copy link
Author

curryhh commented Jul 3, 2019

不是这个哦,你这个是toolbox添加自己的图标做事件,我现在是想不要toolbox,自己来重写toolbox但是功能跟toolbox一样,只是我自己在外层定义

@curryhh
Copy link
Author

curryhh commented Jul 3, 2019

如果是想响应 toolbox 自定义图标事件的话,通过 onclick 事件就行 https://echarts.apache.org/zh/option.html#toolbox.feature

如果是想响应 toolbox 自定义图标事件的话,通过 onclick 事件就行 https://echarts.apache.org/zh/option.html#toolbox.feature

@curryhh curryhh closed this as completed Jul 3, 2019
@wqzwh
Copy link

wqzwh commented Nov 8, 2019

希望能自定义方法来触发toolbox里面图标的事件,请问你有实现么 @curryhh

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

No branches or pull requests

3 participants