CirclonGroup / angular-tree-component

A simple yet powerful tree component for Angular (>=2)
https://angular2-tree.readme.io/docs
MIT License
1.1k stars 492 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.