-
Notifications
You must be signed in to change notification settings - Fork 19.6k
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
feat(tooltip): add appendTo
option to allow customizing tooltip container
#18436
Conversation
Thanks for your contribution! Document changes are required in this PR. Please also make a PR to apache/echarts-doc for document changes and update the issue id in the PR description. When the doc PR is merged, the maintainers will remove the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! I've left some comments. BTW, it would be better to add some test cases for this feature.
…ainer => container
7cd4240
to
19f68c5
Compare
@plainheart Hi. What is the current status for this pr? |
@viking7982 I'll take some time to review it again later, and merge it if there are no problems. It would be better if any other maintainer could leave their comments. |
@plainheart Got it. Thanks~ |
ae8cf31
to
368d0a8
Compare
The changes brought by this PR can be previewed at: https://echarts.apache.org/examples/editor?version=PR-18436@2864cd1 |
appendTo
option to allow customized tooltip containerappendTo
option to allow customizing tooltip container
Congratulations! Your PR has been merged. Thanks for your contribution! 👍 |
* If append popup dom to document.body | ||
* Only available when renderMode is html | ||
* @deprecated | ||
* use appendTo: 'body' instead | ||
*/ | ||
appendToBody?: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the implementation of appendToBody
is totally removed from the source code, it's better to remove this option instead of making it deprecated. This should be fixed in the future versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ovilia The appendToBody
option is not removed yet. See https://github.com/apache/echarts/pull/18436/files#diff-c4bf8caece88579c9e2ae0092955d9505397b706065a6dce98f5b74c7c7209baR175.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@plainheart OK. Thanks for correcting.
Brief Information
This pull request is in the type of:
What does this PR do?
允许用户指定tooltip的容器
Fixed issues
Details
Before: What was the problem?
Tooltip只能插入到在当前DOM节点或者document.body中
After: How does it behave after the fixing?
用户可以指定tooltip的父节点
Document Info
One of the following should be checked.
Misc
ZRender Changes
Related test cases or examples to use the new APIs
N.A.
Others
Merging options
Other information