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 form plugin - Combo combination

jQuery EasyUI plugin jQuery EasyUI plugin

Extended from $ .fn.validatebox.defaults. By $ .fn.combo.defaults override the default defaults.

Combination (combo) is to display an editable text boxes and drop-down panel on the html page. It is used to create complex combinations of other components (eg: combo box combobox, combination tree combotree, composite grid combogrid, etc.) based components.

rely

  • validatebox
  • panel

usage

Combination (combo) can use the javascript from <select> or <input> elements created. Please note that from tags to create a combination (combo) is invalid.

<Input id = "cc" value = "001">
$ ( '# Cc'). Combo ({
    required: true,
    multiple: true
});

Attributes

The property extends from verification box (validatebox), below is a combination (combo) property to add.

名称 类型 描述 默认值
width number 组件的宽度。 auto
height number 组件的高度。该属性自版本 1.3.2 起可用。 22
panelWidth number 下拉面板的宽度。 null
panelHeight number 下拉面板的高度。 200
multiple boolean 定义是否支持多选。 false
selectOnNavigation boolean 定义当通过键盘导航项目时是否选择项目。该属性自版本 1.3.3 起可用。 true
separator string 多选时文本的分隔符。 ,
editable boolean 定义用户是否可以往文本域中直接输入文字。 true
disabled boolean 定义是否禁用文本域。 false
readonly boolean 定义组件是否只读。该属性自版本 1.3.3 起可用。 false
hasDownArrow boolean 定义是否显示向下箭头的按钮。 true
value string 默认值。
delay number 从最后一个键的输入事件起,延迟进行搜索。 200
keyHandler object 当用户按键后调用的函数。默认的 keyHandler 定义如下:
keyHandler: {
	up: function(){},
	down: function(){},
	enter: function(){},
	query: function(q){}
}

event

名称 参数 描述
onShowPanel none 当下拉面板显示的时候触发。
onHidePanel none 当下拉面板隐藏的时候触发。
onChange newValue, oldValue 当文本域的值改变的时候触发。

method

The methods extend from verification box (validatebox), below is a combination (combo) method to add.

名称 参数 描述
options none 返回选项(options)对象。
panel none 返回下拉面板对象。
textbox none 返回文本框对象。
destroy none 销毁组件。
resize width 调整组件的宽度。
showPanel none 显示下拉面板。
hidePanel none 隐藏下拉面板。
disable none 禁用组件。
enable none 启用组件。
readonly mode 启用/禁用只读模式。该方法自版本 1.3.3 起可用。
用法实例:
$('#cc').combo('readonly');		// enable readonly mode
$('#cc').combo('readonly', true);	// enable readonly mode
$('#cc').combo('readonly', false);	// disable readonly mode
validate none 验证输入的值。
isValid none 返回验证结果。
clear none 清除组件的值。
reset none 重置组件的值。该方法自版本 1.3.2 起可用。
getText none 获取输入的文本。
setText none 设置文本值。
getValues none 获取组件的值的数组。
setValues none 设置组件的值的数组。
getValue none 获取组件的值。
setValue none 设置组件的值。

jQuery EasyUI plugin jQuery EasyUI plugin