請問在grid中,如何禁止特定刪除按鈕? 想呈現如圖的效果
$grid->actions(function ($actions) { if ($actions->getKey() % 2 == 0) { $actions->disableDelete(); } });
这样?
感謝!
@z-song 如果重定义了actions列,好像就不可以了
Most helpful comment
这样?