Jump to content

uniTreeView


rtalmeida

Recommended Posts

Hi,

 

To get started, try this:

 

UniTreeView -> ClientEvents -> ExtEvents -> fn checkchange:

function checkchange(node, checked, eOpts)
{
    node.cascadeBy(function(n) {
        n.set('checked', checked);
    });
}

Best regards,

Link to comment
Share on other sites

Hello using the way you oriented it works visually, but how do I know it is checked? I made a small example that I'm sending.

 

Hi,

 

Of course, we will analyze these functions in the future,

But can you try this approach for now?!:

 

UniTreeView1 -> ClientEvents -> ExtEvents -> function checkchange:

function checkchange(node, checked, eOpts) 
{
    var me = this;
    node.cascadeBy(function(n) {
        if (node != n) {
            me.fireEvent('checkchange', n, checked);
            n.set('checked', checked);
        };
    });
}

Best regards,

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...