Actions
Action buttons are rendered for each row.
protected function actionButtons(): array
{
return [
new ActionButton(
VariantType::OUTLINE_INFO->value,
'Edit',
'bi bi-pencil',
routeName: 'users.edit',
routeParams: ['id'],
),
];
}
routeParams are resolved from the current row data. For example, ['id'] uses the row's id value when generating the route URL.
If routeName is empty, the button uses the provided href value.