Resiable for EasyUI Basics)

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.