Home > Web Front-end > JS Tutorial > body text

jQuery EasyUI Tutorial-Draggable (drag)

黄舟
Release: 2016-12-27 16:25:25
Original
1445 people have browsed it

Hello everyone, regarding the jQuery EasyUI tutorial, the first two articles are mainly about the basic understanding of the jQuery EasyUI parser and loader. For the introductory stage, we only need to have a brief understanding. After all, the first stage will not be too in-depth.

Use $.fn.draggable.defaults to override the default value object.

Use case:

Achieved through two methods: tags and Javascript.

1. Create a draggable element through a label.

<div id=”dd” class=”easyui-draggable” data-options=”handle:’#title&#39;” 
style=”width:100px;height:100px;”> <div id=”title” 
style=”background:#ccc;”>title</div></div>
Copy after login

2. Use Javascript to create a draggable element.

<div id=”dd” style=”width:100px;height:100px;”>
<div id=”title” style=”background:#ccc;”>title</div>
</div>
Copy after login
$(‘#dd’).draggable({
handle:’#title’
});
Copy after login

Do you know the above two methods? Next, I will introduce to you the properties, events, and methods of the Draggable plug-in.

Properties:

jQuery EasyUI Tutorial-Draggable (drag)

Events:

jQuery EasyUI Tutorial-Draggable (drag)

##Method:

jQuery EasyUI Tutorial-Draggable (drag)

The above is the content of the jQuery EasyUI tutorial-Draggable (drag). For more related content, please pay attention to the PHP Chinese website (m.sbmmt.com)!



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template