how add css property in action button in resources/createpage

this is my code Actions\CreateAction::make() ->label('Generate from ChatGPT') how i will add css float:right in this button
9 Replies
seetakanta
seetakantaOP14mo ago
please give me any solution
LeandroFerreira
LeandroFerreira14mo ago
You could add on the CreatePage.php
use Filament\Support\Enums\Alignment;
public static string | Alignment $formActionsAlignment = Alignment::Right;
use Filament\Support\Enums\Alignment;
public static string | Alignment $formActionsAlignment = Alignment::Right;
seetakanta
seetakantaOP14mo ago
it was not working
LeandroFerreira
LeandroFerreira14mo ago
Coud you share a screenshot?
seetakanta
seetakantaOP14mo ago
this is
No description
seetakanta
seetakantaOP14mo ago
public function getActions(): array { return [ Actions\CreateAction::make() ->label('Generate from ChatGPT') ->action(fn () => $this->fillFormFields1()) ->disabled($disableGenerateButton) // ->color($formFilled ? 'success' : 'secondary') ->color('success') ->outlined() ->extraAttributes([ 'class' => 'float-right', ]), ]; } i wrote this in my creatResourecesname.php page
LeandroFerreira
LeandroFerreira14mo ago
Something you have changed because the header actions would appear on the right side
No description
seetakanta
seetakantaOP14mo ago
ok sir thank you can you tell me how i change height and width of this button
LeandroFerreira
LeandroFerreira14mo ago
via ->extraAttributes(['class' => 'xx', 'style' => 'xx'])
Want results from more Discord servers?
Add your server