Hello,
I am developing a custom component using remote module. I want to know how we can catch component drop event and delete/remove events.
When my component is being dropped in a form page in Freedom UI designer I want to execute some code also when the component is removed.
any events in @creatio-devkit/common?
Like
Hello,
If I'm not mistaken, you need to look at the page destroy event, if so it is a request crt.HandleViewModelDestroyRequest.
Dmytro Vovchenko,
I am not looking for a page destroy event.. I am developing a custom component. When developers drag and drop this component in their pages in freedom UI designer I want to perform few actions..
In that case, I truly do not understand your business-task, what kind of action you want to add while developers adding a component to designer? When you want to delete/add specific logic in the page when the custom component is added while the developers is still in the designer, isn't it better to do it manually instead of writing some automatic?
Dmytro Vovchenko,
I want to know to which page my component is added. I want to save that information in the backend also clear it from the backend when the component is removed from the page..