why button action cannot add attributes

Viewed 160

this is my code

        protected function getActions(): array
    {
        return [
            buttonAction::make('UPLOAD')->extraAttributes(['class' => 'button'])
                ->action('kkp')
                ->requiresConfirmation()
                ->modalHeading('UPLOAD FILE')
                ->modalButton('UPLOAD FILE')
                ->form([
                    FileUpload::make('attachment')
                        ->extraAttributes(['class' => 'custom'])
                        ->label('UPLOAD SURAT PENGANTAR')
                        ->required()
                ]),
        ];
    }

why cannot add attributes button action on Fillament Laravel I was try to add FileUpload components and this work after that i try to add attributes on button action but didn't work ??

0 Answers
Related