Search code examples
extjstooltipextjs5

ExtJS 5 - Tooltip with dynamic content


I'm trying to figure out a way to dynamically configure the content of a tooltip. Ideally I'd like to have a function called when the user hovers over the tooltip component. This function would determine and return the content string and the tooltip would then be displayed with that content.

Specifically, this tooltip is for a tool component (if that matters.)

See fiddle here.


Solution

  • Sencha's example page has a few different types of tooltips, including a dynamic ajax one.

    There's also the docs page that gives an example of how to change the content by using the "beforeshow" event. That example is under the "Delegation" heading.