RixzZ
RixzZ
FFilament
Created by RixzZ on 1/24/2024 in #❓┊help
Hide row action in Relation Manager shown in view page
I have a Relation Manager that appears in view and edit pages. Prebuilt actions are only shown in the edit page as it should, but after adding a custom action to the RM, this one is shown in both view and edit pages. How can I hide it in the view page?
8 replies
FFilament
Created by RixzZ on 1/5/2024 in #❓┊help
Hide table header row
Can you hide the header row of a table someway? The doesn’t seem to be a option for that. I can’t find a way to inject css there either.
8 replies
FFilament
Created by RixzZ on 1/4/2024 in #❓┊help
Refresh TableWidget data after Action
I have a TableWidget in a View that queries certain data related to the information in the view. Each row has an action that performs an attach in a relationship which would make that row to not be shown in that same widget as a result. E.g: if I perform the same query again refreshing the page, that row would not appear there. The thing is that, I can’t make the data of the table refresh itself to (effectively) hide the row where I just clicked the action. I saw in the documentation that if you change values of that row with the action, the row data should update instantly with livewire, but seems to not be working in case of the row having to disappear. If that’s not an option, I would like to refresh the whole table performing the original query again, which would have the intended effect. I tried calling the resetTable() on the Livewire component, but it doesn’t seem to do anything, so I guess it’s not the correct approach. I don’t think it matters, but the data refresh would be performed just after sending a notification to the user, which I have in the ‘after’ method of the Action inside a function. In the same function is where I added the resetTable() after the notification. Any ideas? Thanks!
5 replies
FFilament
Created by RixzZ on 8/30/2023 in #❓┊help
Multiple panels with own folder for resources duplicates path?
I have two panels (main on / and admin on /admin) and have the discover* options with a custom subfolder on the Resources/Pages/Widgets default paths. The thing is that the path for a resource is being duplicated. For reference: - AdminPanelProvider.php: https://gist.github.com/RixzZ/09ded422435950d7c303189a9232ec5c - UserResource.php (on App/Filament/Resources/Admin): https://gist.github.com/RixzZ/a9e426f6010726c9ea2d5c9119678781 When I access the admin panel, the UserResource is discovered, but the url ends up being /admin/admin/users. Any idea what I did wrong?
4 replies
FFilament
Created by RixzZ on 8/30/2023 in #❓┊help
Two panels (User and Admin), with shared login page and session
Now that you can have more than one panel, I'm trying to have two panels: - Main (with no path, so on /) with authentication (and default). - Admin (/admin) with authentication. Is it possible to share the login between the two panels? Meaning that both panels use the login form on /login and after login in there, you can access both panels (if your role allows it, which I don't know yet how I will restrict). I was planning to use the #bezhansalleh-panel-switch plugin, so if you are an admin, you'll see the action there to switch between both panels, without needing to authenticate again. If you are a user, no switch action should even appear.
19 replies