I'm using tree update with a callback because my node loading logic is complex. Specifically, if a certain error occurs on the server while trying to fetch a node, I want to send another request to update the server state and retry loading the node automatically.
Here is my jstree config:
I highlighted the problematic line, I don't know what it should look like.
I want that in the event that the server returns a 409, then I can cancel loading the node and leave the expand checkbox on that node so that the user can open it again later. If I pass an empty array to the callback, the checkbox will disappear, and if I don't pass anything, the loader spinner will continue to spin.
I'm using tree update with a callback because my node loading logic is complex. Specifically, if a certain error occurs on the server while trying to fetch a node, I want to send another request to update the server state and retry loading the node automatically. Here is my jstree config:
I highlighted the problematic line, I don't know what it should look like.
I want that in the event that the server returns a
409
, then I can cancel loading the node and leave the expand checkbox on that node so that the user can open it again later. If I pass an empty array to the callback, the checkbox will disappear, and if I don't pass anything, the loader spinner will continue to spin.Sorry for my English. Any help ? Thanks!