Skip to content
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

configurable strategies #32

Open
mshariq-nerd opened this issue Apr 1, 2024 · 2 comments
Open

configurable strategies #32

mshariq-nerd opened this issue Apr 1, 2024 · 2 comments

Comments

@mshariq-nerd
Copy link

mshariq-nerd commented Apr 1, 2024

I want to use only drag & drop strategy to move items from dock to the editor.
I am seeing two strategies implemented [DropStrategy, ClickStrategy] but not configurable.
Is there any way to achieve that?

@Ni55aN
Copy link
Member

Ni55aN commented Apr 4, 2024

It's not really customizable, but you can fork and change it easily. There are two options:

  1. place the plugin as part of the source code of your project (if it is based on TS)
  2. make changes to the forked repository and create it using the GH Action "Build and Push"

PRs are welcome. For now, let's keep this tocket as an enhancement request

UPD: there is a hotfix, but I'd not recommend it

area.use(dock);
dock.clickStrategy = { add() { } }

@mshariq-nerd
Copy link
Author

Thanks! @Ni55aN, Let me check this and will see the other possibilities like removing click listener in the dockMenu items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants