表格 · table-kuoqiui-checkbox 多选
.table-kuoqiui-checkbox 是 16px 复选框单元格;以 table 的 data-index 为名:表头「全选」name="<index>s"、行内 name="<index>[]",引擎绑定全选联动。
表格家族
索引
base
simple
toggle
stretch
line
kuoqiui
kuoqiui-head
kuoqiui-pager
kuoqiui-checkbox
sticky
cell
controller
pager
print
多选列
多选 · 引擎全选联动
| 编号 | 商品 | 价格 | |
|---|---|---|---|
| 1 | 多选示例 | 99.00 | |
| 2 | 引擎联动 | 128.00 | |
| 3 | 数组提交 | 66.00 |
<table class="table table-kuoqiui" data-index="id">
<thead><tr>
<th class="table-kuoqiui-checkbox">
<label class="form-label label-simple"><span>全选</span><input type="checkbox" name="ids"></label>
</th>
</tr></thead>
<tbody>
<tr><td class="table-kuoqiui-checkbox">
<label class="form-label label-simple"><span></span><input type="checkbox" name="id[]" value="1"></label>
</td></tr>
</tbody>
</table>
取值 getChooses
<!-- 返回选中的 id 数组,如 [1,3] -->
$Q('table.table-kuoqiui').func("getChooses");
KuoqiUI v2.00 · 离线静态文档 · 界面基于 KuoqiUI ·
返回首页