Home >Web Front-end >JS Tutorial >jQuery EasyUI Chinese API Button usage example_jquery

jQuery EasyUI Chinese API Button usage example_jquery

WBOY
WBOYOriginal
2016-05-16 18:29:391134browse
LinkButton【Link Button】
Instructions for use
Header files used: easyui.css, icon.css, jquery-1.4.2.min.js, jquery.easyui.min.js
Copy code The code is as follows:


JQuery code
Copy code Code As follows:
$('#btn').linkbutton(options);


Feature Description
名称 类型 描述 默认值
disabled boolean 启用、禁用按钮 false
plain boolean 是否启用样式 false
Name
Type Description
Default value
disabled boolean Enable and disable buttons false
plain boolean Whether to enable styles false
View Demo

Official Documentation



MenuButton【 Menu Button】
MenuButton includes link button and menuTo create a MenuButton, you need to assign the linkbutton attribute of a menuInstructions for useHeader file used: easyui .css, icon.css, jquery-1.4.2.min.js, jquery.easyui.min.js


Copy code


The code is as follows:


Edit


Undo

Redo


Cut
Copy
Paste
Delete< ;/div>
Select All
JQuery


Copy code

The code is as follows:


$('#mb').menubutton({
menu: '#mm'
类型 描述 默认值
disabled boolean 启用、禁用按钮 false
plain boolean 是否显示样式 false
menu string 选择器创建一个相应的菜单。 null
duration number 菜单按钮持续显示时间【毫秒】 100
});

DependencyLink ButtonFeature Description

The
Weigh Type Description

Default value

disabled boolean Enable and disable buttons false
plain boolean Whether to display the style false
menu string selector creates a corresponding menu. null
duration number Menu button display time [milliseconds] 100

View Demo Official Documentation

Description There is also a

SplitButton, which I personally feel is the same as menubutt. The official document explains it this way: Similar to MenuButton, SplitButton include linkbutton and menu but can act as a single button. The only difference is that it can be used as a button by itself. The features are the same as the menubutt above, so I won’t go into details here. If you are interested, you can read the official documentation
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn