Easyui-dialog dialog box

Source: Internet
Author: User

Effect:

HTML code:

There are class loading methods and JavaScript loading methods.

<!--class Load mode--><%--<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>--%><!--javascript load mode--><div id ="Dia"> <divclass="Easyui-layout"Data-options ="fit:true"> <div data-options ="Region : ' Center ', height:20, title: ' title ', Fit:true,"></div> </div></div>

JavaScript code:

$ (function () {$ ('#dia'). Dialog ({title:'Dialog', Width: -, Height: -, Iconcls:'Icon-save', modal:true,//is not the suspension increment (bottom not clickable)Draggable:false,//cannot be dragged//toolbar at the toptoolbar: [{text:'Add', Iconcls:'Icon-add', Handler:function () {alert ("add! "); }}, {text:'Delete', Iconcls:'Icon-cancel', Handler:function () {alert ("Delete"); }}, {text:'Refresh', Iconcls:'Icon-reload', Handler:function () {alert ("Refresh"); }        }],        //button group at bottombuttons: [{iconcls:'Icon-add', Text:'Save', Handler:function () {alert ("Save"); }}, {iconcls:'Icon-cancel', Text:'Delete', Handler:function () {alert ("Delete! "); }        }],        //where the event is fully inherited from the panelonclose:function () {alert ("Close the window! "); }    })})

Easyui-dialog 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.