Luciano França Posted September 27, 2023 Share Posted September 27, 2023 With this code I can display a Hint for a Note in the component "UniTreeMenu" ClientEvents.ExtEvents.Values['store.nodeappend'] := 'function store.nodeappend(sender, node, index, eOpts) { ' + ' this.treePanel.getItem(node).el.dom.setAttribute(''data-qtip'', node.data.text); } '; What could I do for the "UniTreeView" component ? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 27, 2023 Share Posted September 27, 2023 Hello, Also this post may help you: Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 27, 2023 Share Posted September 27, 2023 59 minutes ago, Luciano França said: With this code I can display a Hint for a Note in the component "UniTreeMenu" ClientEvents.ExtEvents.Values['store.nodeappend'] := 'function store.nodeappend(sender, node, index, eOpts) { ' + ' this.treePanel.getItem(node).el.dom.setAttribute(''data-qtip'', node.data.text); } '; What could I do for the "UniTreeView" component ? I tried to use this code but my project shows an error, could you help me? Erro.txt Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 27, 2023 Share Posted September 27, 2023 5 minutes ago, eduardosuruagy said: I tried to use this code but my project shows an error, could you help me? Hello, This should work. UniTreeMenu1.ClientEvents.ExtEvents.Values['store.nodeappend'] := 'function store.nodeappend(sender, node, index, eOpts) { ' + ' this.treePanel.getItem(node).el.dom.setAttribute(''data-qtip'', node.data.text); } '; Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 27, 2023 Share Posted September 27, 2023 1 minute ago, Sherzod said: Hello, This should work. UniTreeMenu1.ClientEvents.ExtEvents.Values['store.nodeappend'] := 'function store.nodeappend(sender, node, index, eOpts) { ' + ' this.treePanel.getItem(node).el.dom.setAttribute(''data-qtip'', node.data.text); } '; Can I put it in Mainform's onCreate? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 27, 2023 Share Posted September 27, 2023 1 minute ago, eduardosuruagy said: Can I put it in Mainform's onCreate? Yes. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted September 27, 2023 Share Posted September 27, 2023 It worked, thank you very much!! 1 Quote Link to comment Share on other sites More sharing options...
Luciano França Posted September 27, 2023 Author Share Posted September 27, 2023 This way the Hint will be the Node Text is there any other way for me to create a custom field type for this Hint I am creating a TreeView dynamically from a MainMenu that has a Hint for each MenuItem and I would like to show this MainMenu Hint in the TreeViewer How could I create a Hidden column with large text to be shown as Hint ? Quote Link to comment Share on other sites More sharing options...
Luciano França Posted October 6, 2023 Author Share Posted October 6, 2023 On 9/27/2023 at 6:28 PM, Luciano França said: This way the Hint will be the Node Text is there any other way for me to create a custom field type for this Hint I am creating a TreeView dynamically from a MainMenu that has a Hint for each MenuItem and I would like to show this MainMenu Hint in the TreeViewer How could I create a Hidden column with large text to be shown as Hint ? Solution Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.