Closed ibelar closed 4 months ago
A row action button can be disable via Action::disableActionName method.
\\ Set table and column. $editActionFn = $table->addActionColumn('action', 'edit', AppTest::tableBtnFactory('bi bi-pencil-fill')); $editActionFn->executes($editDialog->jsOpenWithId(Js::var('cell.id'))); $table->getTableColumn('action')->disableActionName('edit', static function ($rowValue) { // return true or false return true });
A row action button can be disable via Action::disableActionName method.