Home >
Web Front-end >
JS Tutorial >
jQuery LigerUI plug-in introduction and use of ligerDrag and ligerResizable sample code packaging_jquery
jQuery LigerUI plug-in introduction and use of ligerDrag and ligerResizable sample code packaging_jquery
WBOY
Release: 2016-05-16 18:08:40
Original
1164 people have browsed it
ligerDrag() Makes the target object draggable. Parameters handler The area of dragging. Dragging can be triggered only in this area. It can be a string (jQuery selector) or a Dom jQuery object onStartDrag Start drag event onDrag Drag event onStopDrag End drag event
onStopDrag: function (current) { $("#message").html("");
} });
ligerResizable() Makes the target object resizable. Parameters Handles The resizing area, in which resizing can be triggered. String. Including eight directions: n, e, s, w, ne, se, sw, nw. You can freely select one or more. If there are multiple, separate them with commas onStartResize Start resizing event onResize Resize event onStopResize End resize event
Example 1: By default, no parameters are used, then handles='n, e, s, w, ne, se, sw, nw'
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn