awcodes / filament-quick-create

Plugin for Filament Panels that adds a dropdown menu to the header to quickly create new items.
MIT License
168 stars 26 forks source link

Render the plugin in a custom render hook #51

Closed abishekrsrikaanth closed 4 months ago

abishekrsrikaanth commented 4 months ago

Adding functionality to render the plugin in a custom render hook. This is useful when a developer customizes their theme and the plugin creates UI issues when it renders using the default hook. Updated the documentation for the changes.

awcodes commented 4 months ago

What does this even look like in other places? It's kinda designed to be in the top bar only.

abishekrsrikaanth commented 4 months ago

This gives flexibility to pretty much move the plugin anywhere on the panel. For the current app, I publish the panel view assets and setup my own render hooks and here is an example of a custom hook I have added after the logo. For this app, I have removed the top bar and only have the left sidebar. And here is how the sidebar looks as well

CleanShot 2024-05-28 at 15 30 38

CleanShot 2024-05-28 at 15 37 12

And if the developer needed, they can publish the quick create view and customize the view and move it to a suitable location of their choice. I hope that clarifies.