jQuery EasyUI menu and button widget - Linkbutton link button
jQuery EasyUI plugin
By $ .fn.linkbutton.defaults override the default defaults.
Link button (linkbutton) is used to create a hyperlink button. It is a normal <a> representation marker. It can display icons and text, or simply display icons and text in one. Button width dynamically shrink / expand to fit its text label.
usage
Create Link button (linkbutton)
Tags to create a link from the button (linkbutton) easier.
<a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'"> easyui </a>
Programming Create Link button (linkbutton) is also permitted.
<a id="btn" href="#"> easyui </a> $ ( '# Btn'). Linkbutton ({ iconCls: 'icon-search' });
Click the link button processing (linkbutton) on.
Users will click on the link button (linkbutton) on a guide to other pages.
<a href="otherpage.php" class="easyui-linkbutton" data-options="iconCls:'icon-search'"> easyui </a>
The following example will be a warning message.
<A href = "#" class = "easyui-linkbutton" data-options = "iconCls: 'icon-search'" onclick = "javascript: alert ( 'easyui')"> easyui </a>
Use jQuery bind click handlers.
<a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'"> easyui </a>
$ (Function () { $ ( '# Btn'). Bind ( 'click', function () { alert ( 'easyui'); }); });
Attributes
名称 | 类型 | 描述 | 默认值 |
---|---|---|---|
id | string | 该组件的 id 属性。 | null |
disabled | boolean | 如果设置为 true,则禁用按钮。 | false |
toggle | boolean | 如果设置为 true,则允许用户切换按钮的选中状态。该属性自版本 1.3.3 起可用。 | false |
selected | boolean | 定义按钮状态是否已选择。该属性自版本 1.3.3 起可用。 | false |
group | string | 指示按钮所属的分组名称。该属性自版本 1.3.3 起可用。 | null |
plain | boolean | 如果设置为 true,则显示一个简单的效果。 | false |
text | string | 按钮文本。 | '' |
iconCls | string | 在左边显示一个 16x16 图标的 CSS class。 | null |
iconAlign | string | 按钮图标的位置。可能的值:'left'、'right'。该属性自版本 1.3.2 起可用。 | left |
method
名称 | 参数 | 描述 |
---|---|---|
options | none | 返回选项(options)属性(property)。 |
disable | none | 禁用按钮。 代码实例: $('#btn').linkbutton('disable'); |
enable | none | 启用按钮。 代码实例: $('#btn').linkbutton('enable'); |
select | none | 选中按钮。该方法自版本 1.3.3 起可用。 |
unselect | none | 未选中按钮。该方法自版本 1.3.3 起可用。 |
jQuery EasyUI plugin