Jump to content

Hints in UniTreeView Node


Luciano França

Recommended Posts

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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); } ';

Link to comment
Share on other sites

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 ?

 

Link to comment
Share on other sites

  • 2 weeks later...
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

 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...