开发者

Include jquery ui function in plugin

开发者 https://www.devze.com 2023-01-18 12:26 出处:网络
I am wondering how I can include the drag functionality from the jquery UI library in a separate开发者_C百科 plugin I am modifying. I want to make a div draggable, but don\'t want to have to write my

I am wondering how I can include the drag functionality from the jquery UI library in a separate开发者_C百科 plugin I am modifying. I want to make a div draggable, but don't want to have to write my own method.


I would suggest building the plugin as a jquery ui widget and just making the jquery ui draggable widget a dependency of your widget. then you make your div draggable using $(div).draggable();.

0

精彩评论

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