gridstack / gridstack.js

Build interactive dashboards in minutes.
https://gridstackjs.com
MIT License
6.38k stars 1.27k forks source link

Change disableResize and disableDrag on Angular on user interaction #2653

Closed mcrodriguezb closed 3 months ago

mcrodriguezb commented 3 months ago

Subject of the issue

I'm trying to update the grid options in angular. First I create a grid with the disableDrag and disableResize options set to true. Then I want to change the options so that the grid will be draggable and resizable. This is the same as https://github.com/gridstack/gridstack.js/issues/898, but now in angular.

Your environment

Steps to reproduce

https://stackblitz.com/edit/stackblitz-starters-ep5dpv

Expected behavior

Allow to resize and drag items.

adumesny commented 3 months ago

use static: true to start, then call grid.setStatic(false) to enable editing...

mcrodriguezb commented 3 months ago

Thanks for your quick response. What do you mean by static? I wasn't able to find such attribute. Are you refering to GridOptions.staticGrid?

mcrodriguezb commented 3 months ago

Please, remember this is for angular wrapper and not plain JS