TextColumn action->button not working as expected

Tables\Columns\TextColumn::make('asdas')
    ->label('See 2 items')
    ->action(
        Tables\Actions\Action::make('test')
            ->button() // it doesnt show it as btn, should it?
            ->modalContent(fn (Response $record) => view('test', [
                'field' => [],
            ]))
            ->modalFooterActions(fn () => [])
        ,
    )

i see like this (see image), but i expected it to be shown as a btn with the primary color as bg , but it doesnt
Screenshot202024-04-0320at2012.png
Solution
Ah that's why. ->action() adds a button and they can't be nested. So that doesn't work then. I guess you need a custom column then.
Was this page helpful?