Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3790
simulate an igTree click?
posted

How can you do this? I inspected the elements and no click even exists, is it in a class?

Tried this

 var node = $(this.tree.getUIDiv().igTree( "findNodesByText", Xnorm ) );
        node[0].element.addClass( 'ui-state-highlight' );
        node.trigger('click');
        node[0].trigger('click');
        node[0].element.trigger('click');

Is this possible?

update: looks like no click event is there but I do see a redirect link to #, _self. I know that is used for refreshes and what not. Is there a way to simulate that?

Parents
  • 5105
    Verified Answer
    Offline posted

    Hi there,

    You can simulate click by clicking the node anchor:

    node[0].element.children('a').click();

    If your intention is to select the node then you can just call the select API method providing the node element.

    Let me know if this helps!

Reply Children
No Data