开发者

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');
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜