搜索中心
搜索中心 搜索快照

数据表格 - 批量操作配置使用

在批量操作中增加操作

// 在批量操作中增加批量操作按钮
$grid->batchOperatePrepend('操作');
// 增加批量操作事件绑定
$js = <<<JS
$(document).on("click","[data-custom-batch-xxx]",function(){
    console.log("批量操作");
    console.log("获取已勾选ID", __grids.get(0).getCheckedIds());
    console.log("获取已勾选条目", __grids.get(0).getCheckedItems());
});
JS;
ModStart::script($js);
查看原文
QQ
微信