Open leblancmeneses opened 10 years ago
@leblancmeneses I'm not sure if I really understood your points, but regarding 2) and 3) the callback method gets invoked on mouse stop with event, jqLite element and item's model (widget). Just look at dashboard/script.js lines 11 and 18. From there you can fire $broadcast if needed.
Regarding point 1) setting constraints per item (max resize and similar) is feasible but my intension was not to make another full-blown DnR (jQuery-ui already does the great job).
You mentioned here that you created DnR implementation. https://github.com/SekibOmazic/so-dashboard/blob/master/src/angular-gridster.js
features that are great in jquery resize: 1) ability to set individual resize constraints at runtime based on the item being resized (max resize, min resize, aspect ratio preservation - (fyi aspect ratio does not work at the item level in ManifestWebDesign/angular-gridster) ) 2) during resize provide dataItem as property in uiWidget. var dataItem = angular.element($element).scope().item; 3) rather than $rootScope.$broadcast use item specific scope and .$broadcast
Here is my current implementation of my ng-controller using ManifestWebDesign's version:
The last user suggestion I need also is: https://github.com/ManifestWebDesign/angular-gridster/issues/103