Adding a widget to a non-resource page
I created a non-resource filament page, I am trying to figure out how to add widget/widgets to this page. Can't seem to figure out on the docs.
7 Replies
For ex: if I wanted to show this plugin (https://filamentphp.com/plugins/awcodes-overlook) on a non-resource page, how do I go about doing it?
It’s just a livewire component. You should be able to just render it in the pages view. Or register it in the header widgets if extending the Page class.
ok
@awcodes is it possible to specify OverallWidget includes per page? there doesn't seem to be a method on the
OverallWidget
class but the option only exists on the OverallPlugin
classNot presently, that would require some modification to allow passing them in if it’s rendered directly. Shouldn’t be too difficult though.
ok, let me see if I can try to send a PR. if you have a suggestion or if you have more on your plate, I can send a PR. I really like this package and see a lot of uses to it
Sure. Should just be a matter of checking if the props are null / empty then defaulting to the plugin method inside mount()
ok, let me take a look at it