jQuery EasyUI API 中文文档 - 链接按钮(LinkButton)(风流涕淌 翻译)

来源:互联网 发布:mac管理员权限 终端 编辑:程序博客网 时间:2024/04/28 12:35

 $.fn.linkbutton.defaults 重写了 defaults


用法示例

1.  <a href="#" id="btn" iconCls="icon-search">easyui</a>  

 

1.  $('#btn').linkbutton({   

2.      plain:true  

3.  });   

4.  $('#btn').linkbutton('disable');    // 禁用此 button   

5.  $('#btn').linkbutton('enable');     // 启用此 button  

特性

名称

类型

说明

默认值

id

string

组件的 id 属性。

null

disabled

boolean

True 就禁用按钮。

false

plain

boolean

True 就显示一个简单的效果。

false

text

string

按钮的文字。

''

iconCls

string

在左边显示一个16x16 图标的CSS 类。

null

方法

名称

参数

说明

options

none

返回选项(options)特性。

disable

none

禁用按钮。

enable

none

启用按钮。


0 0
原创粉丝点击