Hello everyone,
I was asked if there's a way to select the options on a zTree component via the label and not only via the radio button.
As shown in the picture I need the item to be selected when clicked on the label that is selected and being pointed by the arrow.
Hi,
You can use the OnClick Callback from the Ztree API to identify when a specific node has been clicked:
After that, you can select the specific checkbox linked to the clicked node using a javascript widget and the 'SetChckDisabled' Function.