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

Enable/Disable Drag&Drop #25

Closed
AlMuIssues opened this issue Apr 11, 2017 · 3 comments
Closed

Enable/Disable Drag&Drop #25

AlMuIssues opened this issue Apr 11, 2017 · 3 comments

Comments

@AlMuIssues
Copy link

Hello,
how can I enable/disable drag&drop, for example with a toggle button. I've tried:
--> to change dragAndDrop parameter ( IGridsterOptions )
--> to change handlerClass ( IGridsterDraggableOptions )
but nothing change the drag&drop functionality.

@swiety85
Copy link
Owner

I will try to deliver fix this week with new release.

@swiety85 swiety85 added the drag label Apr 12, 2017
@swiety85 swiety85 added this to the Version 0.5 milestone Apr 12, 2017
@swiety85 swiety85 added this to Open in Angular2gridster Apr 12, 2017
@swiety85 swiety85 moved this from Open to Test in Angular2gridster Apr 12, 2017
@swiety85 swiety85 moved this from Test to Ready to merge in Angular2gridster Apr 12, 2017
@swiety85 swiety85 moved this from Ready to merge to Closed in Angular2gridster Apr 12, 2017
@swiety85
Copy link
Owner

swiety85 commented Apr 13, 2017

Please check v. 0.5.0. You can check how to enable/disable drag and resize in demo. I will also soon provide more detailed documentation #6.
I will appreciate some feedback info.

@swiety85
Copy link
Owner

It's possible since v. 0.5.0 to switch dragging on/off by calling on component instance:
gridster.setOption('dragAndDrop', true/false);

Resize:
gridster.setOption('resizable', true/false);

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

No branches or pull requests

2 participants