nuovo2023
Custom Table Action and polling
I have a table that polls data every 5 seconds (and it's configurable), I added two actions to that table widget, a built-in one (a EditAction) and a custom that has a custom view and a trigger. For some reason the standard action is always click-able, meanwhile the custom action is not always clickable.
Table widget:
And the blade view:
According to Filament documentation, that's all I need to add to make this work. The question is, what else should I add to the trigger in order to make it work?
36 replies
Multi-tenancy title
Hello,
I am using Multi-Tenancy, it's going great so far.
I need to differentiate browser tabs by showing the current tenant in the title, for instance:
Resource X - APP NAME - Company A
Resource Y - APP NAME - Company B
How can I achieve that without adding the code below to every resource I have?
6 replies
Replicating and successRedirectUrl
Hello,
I enabled multi-tenancy and I am trying to redirect to the edit form after replicating a record, I listed the routes and the one I need looks like this:
GET|HEAD company/{tenant}/business-hours/{record}/edit ..................................................................................... filament.company.resources.business-hours.edit
I'd beed trying to redirect to the edit form using this piece of code:
->successRedirectUrl(fn($replica) => route('business-hours.edit', ['business-hours' => $replica->id])),
But I'm getting a Route not defined, Help please.
3 replies
Send Model to widget
Hello everyone, I need some help with this one.
I made a custom page, that will have widgets, but I'm trying to reuse the same widget, and add one per client, that's not the problem. the problem is, How can I send a model to a widget in order to show relevant data?
protected function getHeaderWidgets(): array
{
return [
CustomerStatus::make() // 1,
CustomerStatus::make() // 2,
];
}
The widget in mention is one based on BaseWidget, with a table in it.
Thanks for the help.
4 replies