-
In v1 I used to do: Column::make('Actions')
->addClass('text-end'), In v2 I tried Column::make('Actions')
->attributes(fn ($row) => [
'class' => 'text-end',
]), |
Beta Was this translation helpful? Give feedback.
Answered by
emilsrits
Jun 8, 2022
Replies: 1 comment 1 reply
-
Ok, I figured it out with public function configure(): void
{
$this->setPrimaryKey('id')
->setAdditionalSelects(['*'])
->setThAttributes(function (Column $column) {
if ($column->getTitle() === 'Actions') {
return [
'class' => 'text-end',
];
}
return [];
});
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
emilsrits
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ok, I figured it out with
setThAttributes
: