Opened 12 years ago
Last modified 9 years ago
#5426 open feature
Change event for resizable with width and height values — at Initial Version
Reported by: | dalelarsen | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 2.0.0 |
Component: | ui.resizable | Version: | 1.8 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I would like to see a change event for resizable. You could add width and height options which when you pass them in to the resizable object they trigger the change event which performs the resizing as specified by the object. There is a lot of functionality handled by resizable that should not need to be duplicated. Just alsoResize, animate, helper, and such are enough to want to have a change event so they are triggered with other resizes.
Example:
$('#myId').resizable({
handles: 'all', alsoResize: '#otherId, #anotherId', aspectRatio: true, animate: true, start: function(e, ui){
/*complex function*/
}, resize: function(e, ui){
/*complex function*/
}, change: function(e, ui){
/*complex function*/
}, stop: function(e, ui){
/*complex function*/
}
}); $('#myId').resizable('option','width', 600).resizable('option','height', 350);triggers the change event