Use of the jquery Easyui dialog box

Source: Internet
Author: User

First, download


I'm using this version of 1.3.5, http://www.jeasyui.com/download/list.php

After decompression, 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7B/68/wKioL1bNUjazs_eAAABX7BUlGDk234.png "title=" QQ picture 20160224144619.png "alt=" Wkiol1bnujazs_eaaabx7bulgdk234.png "/>

Delete the demo folder.

Second, establish the basic template

<! doctype html>

Three, dialog box

1,class Introduction Method:

<div id= "dd" class= "Easyui-dialog" title= "My Dialog" style= "width:400px;height:200px;"   data-options= "Iconcls: ' Icon-save ', resizable:true,modal:true" > Dialog Content. </div>

2, creating a dialog window with JavaScript is also allowed. Now let's create a modal window and call the ' refresh ' method to read the content through Ajax.

<div id= "DD" >dialog content.</div>
$ (' #dd '). Dialog ({title: ' My Dialog ', width:400, height:200, Closed:false, Cache:false,   HREF: ' get_content.php ', modal:true}); $ (' #dd '). Dialog (' Refresh ', ' new_content.php ');

3, properties


650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7B/69/wKiom1bNVICSKyu-AABVK83fkzk827.png "title=" QQ picture 20160224145745.png "alt=" Wkiom1bnvicskyu-aabvk83fkzk827.png "/>

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7B/69/wKiom1bNVJywMXI7AABL06cEBpo364.png "title=" QQ picture 20160224145749.png "alt=" Wkiom1bnvjywmxi7aabl06cebpo364.png "/>

property to set $ (' #box '). Dialog ({title :  ' title ',width : 400,height : 250,modal :  true,//toolbar :  ' #tt ',toolbar : [{text :  ' edit ',iconcls :  ' Icon-edit ', handler : function  ()  {alert (' edit ');},}, {}],//buttons :  ' #bb ', buttons  : [{text :  ' save ',iconcls :  ' Icon-ok ',handler : function  ()  { Alert (' Save ');}},{}]}); <div id= "tt" ><a href= "#"  class= "Easyui-linkbutton" data-options= "Iconcls: ' Icon-edit ', plain:true" > Edit </a><a href= "#"  class= "Easyui-linkbutton" data-options = "Iconcls: ' Icon-help ', plain:true" > Help </a></div><div id= "BB" ><a href= "#"   class= "Easyui-linkbutton" data-options= "iconcls: ' Icon-ok '" > Save </a><a href= "#"  class= " Easyui-linkbutton "data-options=" iconcls: ' Icon-cancel ' "> Close </a></div>PS:Dialog  is inherited from   window  components, so   window  components and  Panel  components are available.

4, Event List

The window's events are fully inherited from Windows (Panel). So, simply refer to the events in the Window panel.

Dialog Events

$ (' #box '). Dialog ({

width:600,

height:400,

Modal:true,

Onclose:function () {

Alert (' Trigger when off! ‘);

},

});

5, method

Method Name Parameter Description

Dialog None returns an external dialog box object


Use of the jquery Easyui dialog box

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.