Comments (3)
field 属于列定义,不能用于行选中。
cache 中获取的行数据中,有一个 LAY_INDEX 属性,表示行索引。或者遍历表格数据时的索引,也可用于行索引。
from layui.
@hulang 你好,为了提升沟通效率,我们对 Issue 制定了严格的要求,你的 Issue 因不符合规定而被自动关闭。
建议你在下次创建 Issue 时,遵循相应规范和社区行为准则。谢谢。
详见:🍀 Layui Issue 贡献指南
from layui.
field 属于列定义,不能用于行选中。
cache 中获取的行数据中,有一个 LAY_INDEX 属性,表示行索引。或者遍历表格数据时的索引,也可用于行索引。
field 属于列定义,不能用于行选中。
cache 中获取的行数据中,有一个 LAY_INDEX 属性,表示行索引。或者遍历表格数据时的索引,也可用于行索引。
嗯,最后也是这么干的。
done: function () {
var data = table.cache['list'];
var index = -1;
$.each(data, function (i, v) {
if (v['server_id'] == RequestURL.ServerId) {
index = v['LAY_INDEX'];
return false;
}
});
if (index >= 0) {
table.setRowChecked('list', {
type: 'radio',
index: index
});
}
}
from layui.
Related Issues (20)
- layui.table 使用前端分页,如何获取整个表格的实时数据(不仅是当前页) HOT 1
- Tree树组件的节点名称能否支持换行 HOT 1
- 建议添加Layui到公共CDN HOT 2
- 表格table.render用height: 'full-30',高度一直增加 HOT 1
- checkbox绑定on事件,value始终为on值 HOT 2
- 表格组件支持虚拟滚动,以适应后台系统大数据量的渲染需求 HOT 1
- treetable 的子节点使用 exportTemplet 函数导出异常
- treeTable无数据时,设置expandAllDefault,默认表头checkbox会选中
- 更新2.9.13后table样式出现了一些问题
- upload 希望增加自定义上传 HOT 2
- 使用laytpl动态添加手风琴面板 使用element.render重新渲染后默认全部展开
- tree增加 pre operate 方法,return false,则不operate(add|delete|update) HOT 2
- 下拉组件能否添加根据页面/文档实际大小自动宽高的功能 HOT 1
- layer.prompt有点怪异 HOT 3
- treeTable 更新数据后重载报错 HOT 1
- upload组件,error方法没有像table组件那样,返回状态码,例如401
- Table组件列定义异常时,提供调试信息 HOT 1
- 能否把layui-vue版的popconfirm和layer.Notify整合过来啊 HOT 4
- 轮播组件切换箭头点击后触发form表单必填校验
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from layui.