Latest web development tutorials
×

jQuery EasyUI Tutorial

jQuery EasyUI Tutorial jQuery EasyUI Introduction

jEasyUI application

jEasyUI Create a CRUD application jEasyUI Create a CRUD data grid jEasyUI Form CRUD application jEasyUI Create an RSS reader

jEasyUI Drag and drop

jEasyUI Basic drag and drop jEasyUI Create a drag-and-drop shopping cart jEasyUI Create a school curriculum

jEasyUI Menus and buttons

jEasyUI Create a simple menu jEasyUI Create a link button jEasyUI Create a menu button jEasyUI Create a split button

jEasyUI layout

jEasyUI Create a border layout jEasyUI Create a complex layout jEasyUI Creates a fold panel jEasyUI Create a tab page jEasyUI Dynamically add a tab jEasyUI Add the AutoPlay tab jEasyUI Create the XP style left panel

jEasyUI Data grid

jEasyUI Convert HTML tables to data grids jEasyUI Get the selected row data jEasyUI Add the query function jEasyUI Add a toolbar jEasyUI Create complex toolbars jEasyUI Sets the frozen column jEasyUI Dynamically change columns jEasyUI Format the column jEasyUI Set sort jEasyUI Custom sorting jEasyUI Create a column combination jEasyUI Add a check box jEasyUI Custom tab jEasyUI Enable in-line editing jEasyUI Extension editor jEasyUI Column operation jEasyUI Merge Cells jEasyUI Create a custom view jEasyUI Create a footer summary jEasyUI Condition Sets the line background color jEasyUI Create an attribute grid jEasyUI The extended line shows the details jEasyUI Create a subgrid jEasyUI Display massive data jEasyUI Add a paging component

jEasyUI window

jEasyUI Create a simple window jEasyUI Customize the Window Toolbar jEasyUI Window and layout jEasyUI Create a dialog box jEasyUI Customize the dialog box

jEasyUI Tree menu

jEasyUI Use the markup to create a tree menu jEasyUI Create an asynchronous tree menu jEasyUI Tree menu to add nodes jEasyUI Create a tree menu with check boxes jEasyUI Tree menu drag and drop control jEasyUI The Tree menu loads the parent / child nodes jEasyUI Create the base tree grid jEasyUI Create a complex tree grid jEasyUI Dynamic loading of tree jEasyUI The tree grid adds pagination jEasyUI Tree-lazy lazy-loading node

jEasyUI Form

jEasyUI Create an asynchronous submission form jEasyUI Form validation jEasyUI Create a tree drop-down box jEasyUI Format the drop-down box jEasyUI Filter down the data grid

jEasyUI Reference Manual

jQuery EasyUI Plugin jQuery EasyUI Extended

jQuery EasyUI widget - Window window

jQuery EasyUI plugin jQuery EasyUI plugin

Extended from $ .fn.panel.defaults. By $ .fn.window.defaults override the default defaults.

Window (window) is a floating, draggable panels, can be used as the application window to use. By default, the window can be moved to adjust the size, it can be closed. Its content is defined either by a static html to be dynamically loaded by ajax.

rely

  • draggable
  • resizable
  • panel

usage

Create a window (window)

1, from the tag to create a window (window).

<Div id = "win" class = "easyui-window" title = "My Window" style = "width: 600px; height: 400px"
    data-options = "iconCls: 'icon-save', modal: true">
    Window Content
</ Div>

2, using javascript to create a window (window).

<Div id = "win"> </ div>
$ ( '# Win'). Window ({
    width: 600,
    height: 400,
    modal: true
});

3, create a window (window) through the composite layout.

As usual, you can define the window layout. The following example demonstrates how to split the window area into two parts: the northern and central areas.

<Div id = "win" class = "easyui-window" title = "My Window" style = "width: 600px; height: 400px"
    data-options = "iconCls: 'icon-save', modal: true">
    <Div class = "easyui-layout" data-options = "fit: true">
		<Div data-options = "region: 'north', split: true" style = "height: 100px"> </ div>
		<Div data-options = "region: 'center'">
			The Content.
		</ Div>
    </ Div>
</ Div>

Window (window) action

Opening and closing windows (window).

$ ( '# Win') window ( 'open');. // Open a window
$ ( '# Win') window ( 'close');. // Close a window

Loading window content via ajax.

$ ( '# Win') window ( 'refresh', 'get_content.php').;

Attributes

The property extends from the panel (panel), the following is a window (window) rewriting and properties added.

名称 类型 描述 默认值
title string 窗口的标题文本。 New Window
collapsible boolean 定义是否显示折叠按钮。 true
minimizable boolean 定义是否显示最小化按钮。 true
maximizable boolean 定义是否显示最大化按钮。 true
closable boolean 定义是否显示关闭按钮。 true
closed boolean 定义是否关闭窗口。 false
zIndex number 从其开始增加的窗口的 z-index。 9000
draggable boolean 定义窗口是否可拖拽。 true
resizable boolean 定义窗口是否可调整尺寸。 true
shadow boolean 如果设置为 true,当窗口能够显示阴影的时候将会显示阴影。 true
inline boolean 定义如何放置窗口,当设置为 true 时则放在它的父容器里,当设置为 false 时则浮在所有元素的顶部。 false
modal boolean 定义窗口是不是模态(modal)窗口。 true

event

The event extends from the panel (panel).

method

The methods extend from panels (panel), the following is a method for the window (window) to add.

名称 参数 描述
window none 返回外部窗口(window)对象。
hcenter none 水平居中窗口。该方法自版本 1.3.1 起可用。
vcenter none 垂直居中窗口。该方法自版本 1.3.1 起可用。
center none 居中窗口。该方法自版本 1.3.1 起可用。

jQuery EasyUI plugin jQuery EasyUI plugin