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

本文介绍了如何使用 EasyUI 的 LinkButton 组件,包括通过设置 plain 属性来改变按钮样式,以及如何通过调用 disable 和 enable 方法来控制按钮的状态。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 $.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

启用按钮。


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值