The base plug-in of easyui has been learned by Resizable. Take a look at the easyui official API.
Resiable
As it literally means (Scalable), resiable is mainly to extend some html elements to scalable, panel, window, etc. If you don't believe it, you can check the easyui loader source code! (The window depends on resizable) or is it described on the official website.
Overwrite default $. fn. resizable. defaults.
Attribute
| Name |
Type |
Description |
Default Value |
| Disabled |
Boolean |
If this parameter is set to true, the instance can be scaled. |
False |
| Handles |
String |
Indicates the scaling direction. 'n' indicates scaling to the north, and 'E' indicates scaling to the east. |
N, e, s, w, ne, se, sw, nw, all |
| MinWidth |
Number |
Minimum width after scaling |
10 |
| MinHeight |
Number |
Min height after scaling |
10 |
| MaxWidth |
Number |
Max width after scaling |
10000 |
| MaxHeight |
Number |
Min width after scaling |
10000 |
| Edge |
Number |
The zooming width and the distance between the edges. |
5 |
Event
| Name |
Parameters |
Description |
| OnStartResize |
E |
Triggered when scaling starts. |
| OnResize |
E |
Triggered during resizing. When false is returned, the DOM element does not actually scale. |
| OnStopResize |
E |
Operation triggered when scaling is stopped |
Method
| Name |
Parameters |
Description |
| Options |
None |
Returns the resiable parameter object. |
| Enable |
None |
Adjustable size |
| Disable |
None |
Cannot resize |
Usage
1. Create with html tags:
2. Create with js script:
$('#rr').resizable({ maxWidth:800, maxHeight:600});
Demo
The Demo is also available on the official website!
Basic Draggable - jQuery EasyUI Demo
<script type="text/javascript" src="jquery-easyui-1.3.6/jquery.min.js"></script> <script type="text/javascript" src="jquery-easyui-1.3.6/jquery.easyui.min.js"></script>
Resize Me
<script> </script>
Okay, that's it. I'm too lazy to post a website!
Independent site: liangtao.sinaapp.com /? P = 200