Is it possible to add actions to a footer or header widget on a view page?
I am working on an approvals package, and I want for the user to be able to perform an approval action(approve, reject, submit etc) at the bottom of the view page. I attempted to do this by adding a footer widget and then adding an action(for example approve). But the action appears to be disabled. I added the same widget to the Edit page, and the button was still disabled.
Is this feature possible in filament, if yes, how?
7 Replies
It should be possible, why does it seem disabled?
So far this is my implementation:
This is the approval widget
This is the view file:
And then I added this the view record on my resource file:
On the UI, I get the submit button but upon clicking, nothing happens
if you dd($this->record) does it dump the record?
Yes, it shows the record
Is Submit disabled at the button level? If you click it, do you see it in the network logs being clicked?
no, there is no network logs, and it is not disabled at the button level
Source dive into the class extension and what it extends.