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
please give me any solution
You could add on the CreatePage.php
it was not working
Coud you share a screenshot?
this is
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
Something you have changed because the header actions would appear on the right side
ok sir thank you
can you tell me how i change height and width of this button
via
->extraAttributes(['class' => 'xx', 'style' => 'xx'])