Skip to content

工具栏

自定义工具栏按钮

php
use LinAdmin\controller\tools\ToolUrlButton;

$table->tools(function (Grid\Tools $tools) {
$url = Url::getUrl("create","knowndetailaddorder");
$tools->right(new ToolUrlButton($url, "模拟下单"));
});

批量操作

禁用批量删除

php
$table->disableBatchDelete();

// 或
$table->batchActions(function (Grid\Tools\BatchActions $batch) {
    $batch->disableDelete();
});