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 menu and button widget - Splitbutton split button

jQuery EasyUI plugin jQuery EasyUI plugin

Extended from $ .fn.linkbutton.defaults. By $ .fn.splitbutton.defaults override the default defaults.

And the menu button (menubutton) similar, the link button (linkbutton) and menu (menu) on thumbnail button (splitbutton). And the menu button (menubutton) is different, split button (splitbutton) is divided into two parts. When moving the mouse to the split button (splitbutton) on, it will display a dividing line. Only when you move the mouse when the right part of the split button to display the menu (menu).

rely

  • menubutton

usage

Create split button from the tag (splitbutton).

<A href = "javascript: void (0)" id = "sb" class = "easyui-splitbutton"
    data-options = "menu: '# mm', iconCls: 'icon-ok'" onclick = "javascript: alert ( 'ok')"> Ok </a>
<Div id = "mm" style = "width: 100px;">
    <Div data-options = "iconCls: 'icon-ok'"> Ok </ div>
    <Div data-options = "iconCls: 'icon-cancel'"> Cancel </ div>
</ Div>

Use javascript to create split button (splitbutton).

<a href="javascript:void(0)" id="sb" onclick="javascript:alert('ok')"> Ok </a>
<Div id = "mm" style = "width: 100px;">
...
</ Div>
$ ( '# Sb'). Splitbutton ({
    iconCls: 'icon-ok',
    menu: '#mm'
});

Attributes

The property extends from the link button (linkbutton), the following is the split button (splitbutton) increased properties.

名称 类型 描述 默认值
plain boolean 如果设置为 true,则显示一个简单的效果。 true
menu string 用于创建对应菜单(menu)的选择器。 null
duration number 当悬停在按钮上时,以毫秒为单位定义的,显示菜单(menu)的持续时间。 100

method

The method inherited from the link button (linkbutton), the following is the split button (splitbutton) increased or overridden methods.

名称 参数 描述
options none 返回选项(options)对象。
disable none 禁用分割按钮(splitbutton)。代码实例:
$('#sb').splitbutton('disable');
enable none 启用分割按钮(splitbutton)。代码实例:
$('#sb').splitbutton('enable');
destroy none 销毁分割按钮(splitbutton)。

jQuery EasyUI plugin jQuery EasyUI plugin