Action button on Topbar
Hi! I would like to add an Action button next to the user dropdown and notifications, so the user can use that action anywhere. In this case, I want to create a record in a database, like a quick note, so the user don't need to navigate... just create a quick note from anywhere... thanks!!
4 Replies
Make a livewire component to do all the functionality action button, etc. then you can render it with a renderHook.
Similar idea can be seen in the quick create plugin as an example.
I was wondering if there is something like this...
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
->menu([ Action::make('quicknote') ])
I Think this way would be easy...
I'll investigate render hooks
Check #awcodes-quick-create
Awesome! I've forgot to check plugins!