-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React wrapper, should have a way to access designer #176
Comments
Hello @travisnguyen20,
I'm not sure if I understand. Could you explain which button you are referring to? Is it a button in the control bar? Are you trying to block drag-and-drop from the toolbox? |
I'm referring to Drag & Drop button on control bar |
not hiding but enabling it by default. I attach a video for demo Screen.Recording.2025-01-23.at.08.49.43.mov |
I see. You can disable dragging at the beginning by using the external control bar feature (it's available in the pro version). Please check this demo. In it, you can see that the application, written in React, can enable or disable dragging (the control bar here is created at the application level using TSX). How it works? The pro version provides the const externalControlBarController = useExternalControlBarController();
...
externalControlBarController.setIsDragDisabled(true /* or false */);
...
externalControlBarController.isDragDisabled(); // => true or false |
I'm using react version, I would like to set drag/drop button on control bar to be enbled by default, that required access to designer instance however there is no way to access it with react wrapper?
Would you support it? or there is other way to disable drag/drop button without touching designer instance?
Thanks
The text was updated successfully, but these errors were encountered: