Enable/Disable grid in real time
Opened this issue · 6 comments
codingfriend1 commented
How can you enable and disable the grid in real time with angular. Perhaps a boolean that toggles whether dragging and resizing is enabled?
michalmw commented
@codingfriend1 you have resolve? I need this option too
codingfriend1 commented
I didn't.
ancabi commented
+1
I need that feature
ancabi commented
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);
});
}