I am using ManifestWebDesign Angular Gridster and not able to enable drag only for a particular portion of the grid as shown in the Gridster Demo example below.
Expected to work like Gridster Demo
Currently using the angular gridster configuration shown here - check handle option under draggable
I have implemented a plunker here - Angular Gridster The plunker example uses '.my-class' as shown in the configuration.
Not sure how to make 'handle option under draggable work'.
Html
<body ng-app='gridsterApp'>
<div ng-controller='gridsterController'>
<div gridster='gridsterOptions'>
<ul>
<li gridster-item="item" ng-repeat="item in standardItems">
<div class='my-class'>Drag Here</div>
</li>
</ul>
</div>
</div>
</body>
Javascript
angular.module('gridsterApp', ['gridster'])
.controller('gridsterController', function($scope){
$scope.gridsterConfiguration = {
isMobile: false,
defaultSizeX: 2,
defaultSizeY: 2,
resizable: {
enabled: true
},
draggable: {
enabled: true,
handle: '.my-class'
},
margin: [10,10]
};
$scope.standardItems = [
{ sizeX: 2, sizeY: 1, row: 0, col: 0 },
{ sizeX: 2, sizeY: 2, row: 0, col: 2 }
];
});