CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.09k stars 488 forks source link

Unable to use click in action mapping #919

Open EmperorBlack opened 3 years ago

EmperorBlack commented 3 years ago

this.options = { childrenField: 'categoryChildren', allowDrag: (node) => { return ( node.data.parentId )}, allowDrop: true, actionMapping: { mouse: {

      click: (tree, node, $event) =>{
        console.log("calling click");
      }

    }
  },
};

but while clicking over nodes this click method never calls this console. please help.