F
Filament11mo ago
Abi

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
Abi
AbiOP11mo ago
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?
Filament
Overlook by Adam Weston - Filament
An app overview widget for Filament panels.
awcodes
awcodes11mo ago
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.
Abi
AbiOP11mo ago
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 class
awcodes
awcodes11mo ago
Not presently, that would require some modification to allow passing them in if it’s rendered directly. Shouldn’t be too difficult though.
Abi
AbiOP11mo ago
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
awcodes
awcodes11mo ago
Sure. Should just be a matter of checking if the props are null / empty then defaulting to the plugin method inside mount()
Abi
AbiOP11mo ago
ok, let me take a look at it
Want results from more Discord servers?
Add your server