neekooo
neekooo
FFilament
Created by neekooo on 7/1/2024 in #❓┊help
Injecting headerActions to Resource
I achieved this by manipulating the $this->cachedHeaderActions array which is used to display the actions on the page. But I don't know if it's a good solution
13 replies
FFilament
Created by neekooo on 7/1/2024 in #❓┊help
Injecting headerActions to Resource
yes but the actions that i want to show are the core actions of my plugin, but nvm i will probably follow your first reply. Thanks a lot!
13 replies
FFilament
Created by neekooo on 7/1/2024 in #❓┊help
Injecting headerActions to Resource
i want to make a EditPage similar to EditRecord or CreateRecord, but i want that the user can create his own (an example) App\Filament\Resources\CatResource\Pages\CatPage and only by extends his class with my class EditPage can view others header actions, and the user can add his own header action calling the method getHeaderActions(). I was looking for the trait Filament\Pages\Concerns\InteractsWithHeaderActions that handle the header actions, and there is no change to "inject" other action under the hood 😭 .
13 replies
FFilament
Created by neekooo on 7/1/2024 in #❓┊help
Injecting headerActions to Resource
yes, but i don't want to write every time parent::getHeaderActions() etc in all my pages. sorry if I'm not making myself understood xd
13 replies
FFilament
Created by neekooo on 7/1/2024 in #❓┊help
Injecting headerActions to Resource
thanks for the reply! yes i know i can do this, but i want to leave the logic to the default getHeaderActions() method, and inject under the hood my others actions.
13 replies