You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow to provide an element instance from the custom tooltip callback in addition to just an HTML string. This would make it a lot easier to integrate with other libraries and frontend stacks.
This allows the custom tooltip callback to not only return an HTML string, but also an HTML element instance, which solves a slew of issues and user questions, and allows more advanced integration, such as using a prop in React, or a slot in a Vue component, to render a tooltip.
The API change doesn't introduce any backwards incompatibilities.
The text was updated successfully, but these errors were encountered:
Summary
Allow to provide an element instance from the custom tooltip callback in addition to just an HTML string. This would make it a lot easier to integrate with other libraries and frontend stacks.
API Changes
Really just this:
src/modules/tooltip/Labels.js
, Lines 527–535Intended Use Case
This allows the custom tooltip callback to not only return an HTML string, but also an HTML element instance, which solves a slew of issues and user questions, and allows more advanced integration, such as using a prop in React, or a slot in a Vue component, to render a tooltip.
The API change doesn't introduce any backwards incompatibilities.
The text was updated successfully, but these errors were encountered: