javascript - angular ui jQuery Passthrough for resizable jquery plugin -


i have been trying use angular ui jquery passthrough jquery resizable plugin

adocsmodule.value('uijqconfig', {        resizable: {         stop: function (event, ui) {             alert('stop');         }     } }); 

now when call on div

<div style="height: 30px; width:60px; border:solid; padding:2px"              ng-repeat="item in list2" ui-jq="resizable"  > 

it works fine div resized problem want hook stop function in controller

like use ui-options . can 1 guide me how can move method controller rather have in configuration ??

or not possible jquery passthrough ? or angular directive can resizing , have callback functions

any appreciated

update:

i have made changes ,

$scope.stopcallback = function (event, ui, item) {         alert('stop');     }      $scope.startcallback = function (event, ui, item) {         alert('start');     }       $scope.optionsobj = {         start:$scope.startcallback,         stop: $scope.stopcallback     };   <div style="height: 30px; width:60px; border:solid; padding:2px"                  ng-repeat="item in list2" ui-jq="resizable" ui-options="startcallback,stopcallback,optionsobj"  > 

is right way of doing , secondly how pass parameter these functions . reason wanted know element getting resized

for example if error

ui-options="startcallback(item, $index),stopcallback,optionsobj"  

give try.

ui-options="{start:startcallback},{stop:stopcallback}"


Comments

Popular posts from this blog

php - SPIP: From Tag directly to an article -

jquery - isAjaxRequest always return false -

ruby on rails - In a controller spec, how to find a specific tag in the generated view? -