is there a way to add qtip onto treeNode's UI ?
is there a way to add qtip onto treeNode's UI ?
it's a configuration of treenode.
If you want to modify the qtip after the rendering of the tree, use the following function (found somewher in the forum, I don't remember where!Code:var newNode = new Ext.tree.AsyncTreeNode({ id: uid, text: "New file", iconCls: 'file', leaf: true, qtip:'my qtip' });
usage:Code:function updateqt(B,C,A){ if(B.getUI().textNode.setAttributeNS){B.getUI().textNode.setAttributeNS("ext","qtip",C);if(A){B.getUI().textNode.setAttributeNS("ext","qtitle",A);}}else{B.getUI().textNode.setAttribute("ext:qtip",C);if(A){B.getUI().textNode.setAttribute("ext:qtitle",A);}} }
Code:updateqt(n, n.attributes.qtip , null);
i have a static treenode and leaf at the content tree, for dynamically added treenode,
the tip is shown when mouse is over the the node text field. For static node
leaf where text and qitp have been added as below
...
text: 'nodeName,
...
qtip: 'sometip',
...
the problem is that the tip is only shown when mouse is positioning at the right bottom corner of the node text field instead of mouse over the text filed.
any suggestion for solving it ?
I haven't the same behaviour as you. the tooltip appears when I position the mouse over the label of the node
when i used class at formatting treenode/leaf text like like bold/italic, it works fine,