Use 'beforeClick / onClick' callback function can be achieved with the click on the various functions. This simple demo shows how to monitor the click event.
Try pressing the Ctrl or Cmd key for multi-node selection and deselection.
click log:
2, Explanation of setting
You need to set attributes about setting.callback.beforeClick and setting.callback.onClick, see the API documentation for more related contents.
3, Explanation of treeNode
No special requirements on the node data, the user can add custom attributes.