gridstack-angular
gridstack-angular copied to clipboard
Enable/Disable grid in real time
How can you enable and disable the grid in real time with angular. Perhaps a boolean that toggles whether dragging and resizing is enabled?
@codingfriend1 you have resolve? I need this option too
I didn't.
+1
I need that feature
I found a solution
function edit() {
vm.state = !vm.state;
angular.forEach($scope.gridstacker.grid.nodes,
function(s) {
$scope.gridstacker.resizable(s.el, !vm.state);
$scope.gridstacker.movable(s.el, !vm.state);
});
}
@ancabi Where did you add this code?
@dharmic sorry for taking a long time to answer, that function is called when I click a button