首页 > 其他分享 >EasyUI Linkbutton 链接按钮/easyui的学习网站

EasyUI Linkbutton 链接按钮/easyui的学习网站

时间:2023-04-18 09:34:57浏览次数:59  
标签:none Linkbutton EasyUI easyui 1.3 linkbutton 按钮 链接

https://www.jeasyui.net/plugins/187.html

关于easyui的学习,可以在这个网站:https://www.jeasyui.net/

链接按钮(linkbutton)用于创建一个超链接按钮。它是一个正常的 <a> 标记的表示。它可显示图标和文本,或者仅仅显示图标和文本中的一个。按钮宽度可动态收缩/扩展以适应其文本标签。

用法

创建链接按钮(linkbutton)

从标记创建链接按钮(linkbutton)更容易。

  1. <a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">easyui</a>

编程创建链接按钮(linkbutton)也是允许的。

  1. <a id="btn" href="#">easyui</a>
  2. $('#btn').linkbutton({
  3. iconCls: 'icon-search'
  4. });

处理链接按钮(linkbutton)上的点击。

链接按钮(linkbutton)上的点击将把用户引导到其他页面。

  1. <a href="otherpage.php" class="easyui-linkbutton" data-options="iconCls:'icon-search'">easyui</a>

下面的实例将警告一个消息。

  1. <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'"
  2. onclick="javascript:alert('easyui')">easyui</a>

使用 jQuery 绑定 click 处理程序。

  1. <a id="btn" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">easyui</a>
  1. $(function(){
  2. $('#btn').bind('click', function(){
  3. alert('easyui');
  4. });
  5. });

属性

名称类型描述默认值
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

方法

名称参数描述
options none 返回选项(options)属性(property)。
disable none 禁用按钮。
代码实例:
  1. $('#btn').linkbutton('disable');
enable none 启用按钮。
代码实例:
  1. $('#btn').linkbutton('enable');
select none 选中按钮。该方法自版本 1.3.3 起可用。
unselect none 未选中按钮。该方法自版本 1.3.3 起可用。

标签:none,Linkbutton,EasyUI,easyui,1.3,linkbutton,按钮,链接
From: https://www.cnblogs.com/Dongmy/p/17328400.html

相关文章

  • easyui的按钮点击时layout布局west隐藏
    当我们在用easyui的laoyout布局时,如果显示主页面采用的是tabs并且每添加一个tab时嵌套一个ifram,而在iframe中引用的界面有link-button按钮时,在IE8会出现点击该按钮west隐藏,解决方案如下:<ahref="javascript:void(0)"οnclick="goAcctBack();"class="easyui-linkbutton"iconCls=......
  • abp(net core)+easyui+efcore实现仓储管理系统——模块管理升级之上(六十一)
     Abp(netcore)+easyui+efcore实现仓储管理系统目录abp(netcore)+easyui+efcore实现仓储管理系统——ABP总体介绍(一)abp(netcore)+easyui+efcore实现仓储管理系统——解决方案介绍(二)abp(netcore)+easyui+efcore实现仓储管理系统——领域层创建实体(三) abp(netcore)+e......
  • abp(net core)+easyui+efcore实现仓储管理系统——模块管理升级(六十)
    Abp(netcore)+easyui+efcore实现仓储管理系统目录abp(netcore)+easyui+efcore实现仓储管理系统——ABP总体介绍(一)abp(netcore)+easyui+efcore实现仓储管理系统——解决方案介绍(二)abp(netcore)+easyui+efcore实现仓储管理系统——领域层创建实体(三) abp(netcore)+eas......
  • 最近遇到的若干Web前端问题:disable和readonly,JqueryEasyUI,KindEditor
     最近项目中用到了JqueryEasyui和KindEditor等框架组件,问题真不少啊~ 一些看起来很简单理所当然的事情,竟然花费了不少时间,才解决好~  1.readonly和disable的区别 readonly:只读,不可编辑,提交表单时,值会提交到后端。 disable:禁止(包含了“只读”......
  • EasyUI闪屏,EasyUI页面加载提示:原理+代码+效果图
    使用EasyUI时,有个经常遇到的问题,页面还没有渲染完成的时候,就展现了。刚刚开始很混乱,等加载完成后,就好了。    $.parser.onComplete,这个是在所有组件解析完成后执行的事件。其实这个事件很有用的。很多在布局用到easyui的时候总会出现一个问题。就是在一进入主界面的时候,页......
  • easyui如何引入
    首先别忘了引入jquery。以下是easyui代码:<linkrel="stylesheet"href="/static/jquery-easyui-1.7.0/themes/default/easyui.css"><linkrel="stylesheet"href="/static/jquery-easyui-1.7.0/themes/icon.css"><scriptsrc=&......
  • abp(net core)+easyui+efcore实现仓储管理系统——ABP升级7.3下(五十九)
    Abp(netcore)+easyui+efcore实现仓储管理系统目录abp(netcore)+easyui+efcore实现仓储管理系统——ABP总体介绍(一)abp(netcore)+easyui+efcore实现仓储管理系统——解决方案介绍(二)abp(netcore)+easyui+efcore实现仓储管理系统——领域层创建实体(三) abp(netcore)+eas......
  • abp(net core)+easyui+efcore实现仓储管理系统——ABP升级7.3(五十八)
    Abp(netcore)+easyui+efcore实现仓储管理系统目录abp(netcore)+easyui+efcore实现仓储管理系统——ABP总体介绍(一)abp(netcore)+easyui+efcore实现仓储管理系统——解......
  • EasyUI的combotree 默认节点选中呢
    $('#selShenqFuwujg').combotree({url:'../../GetFuwujgInfo.aspx?type=GetFuwujgTree&PID=',onLoadSuccess:function(node,data){......
  • easyui在datagrid只想选择一条
    <tableclass=""id="jgrid"data-options="fitColumns:true,rownumbers:true,singleSelect:true">singleSelect:true......