when does the resize stop event called? (JQuery UI)
hey every one.
i'd like to makes an object re-draggable after resize f开发者_运维百科inishes but i do not know when does it finish. what action calls the stop event?thank you
I think you're looking for the resizestop
event, which is triggered at the end of a resize operation. You can tap into the event like this on initialization of the resizable object:
$("#resizable_div").resizable({
stop: function(event, ui) {
alert('stopped resizing');
}
});
Or you can use bind
to attach an event handler:
$("div").bind("resizestop", function(event, ui) {
alert('stopped resizing');
});
精彩评论