GXT: tooltips on individual TreeItems


ext_logoIn the series: “how to lose time by fixing GXT stuff that should work but doesn’t“, today we address tooltips on individual TreeItems. If you ever tried to set a tooltip on a TreeItem and got frustrated because it didn’t work, you might find this post interesting:

http://extjs.net/forum/showthread.php?p=329305#post329305

As usual, a lot of time is spent working around GXT oddities, only to find new ones… For example, Component.setToolTip takes not a ToolTip, but a ToolTipConfig. Additionally, it instantiates the ToolTip. There is no way of passing an already constructed ToolTip to a Component, which means you can’t use a subclass of ToolTip. (Hint for GXT developpers: Law of Demeter)

  1. No comments yet.
(will not be published)