Mansoor Khan
Open a Modal when field state changes
Is it possible to open a modal when the field state changes. I need to add something like this to the Toggle field using a Macro.
Has anyone tried something, any trick?
We could dispatch the
open-modal
event but then we also need to register it somewhere and should be able to cancel/proceed the toggle state.
7 replies
Use FilterAction in a custom widget
Hi,
I am trying to use FilterAction in a custom widget. It appears beside other action button but does not open the filter drop-down.
Is it possible to use
FilterAction
just like other actions? Am i missing something?
4 replies
Possible Bug in Action ->disabled() and ->hidden()
I have added Filament action to a custom livewire page. The disabled function works a little odd, the condition changes to true/false but the ->action() would not execute.
If i remove the disabled(), it works as expected.
Can any one reproduce this?
3 replies
Upload image from URL
I am trying to upload a file from url to FileUpload field. Has anyone tried something like this before?
I am able to upload the file locally, then save the path to db and then reset the FileUpload field state with new path.
But I dont want to save it DB after downlaoding the file from url. I just want to pass it to FileUpload field, so that user can see a preview.
Here is what i am trying. Everything works, file also saves correctly on submit and also previews after submit.
But it does not preview unless you submit it.
so wondering if there is a way to tell Filament to preview it.
42 replies
Get resource in Action class
I am creating a plugin and it provides a page just EditRecords page. Users can extend this page and specify the $resource.
Now I am creating two Actions, one Table action and another normal Page action to redirect to users to the Custom page that extends the plugin Page. This action can be used on Edit record pages.
The problem is i cannot get the $resource, to redirect them to correct resource page.
4 replies
How to Create an Action class that can be used on both Table and Form
Hi,
I have a pretty big action with form and form handling logic. I need to extract it to a class which can be used on both the Resource Table and the Resource Edit form.
3 replies
How to use Spatie Media Library in a json repeater field.
I have a requirement, where I need to use Spatie Media file upload and store the model_id in json column.
Here is the required structure:
Here is what i am trying, It can read files from Media model.
I am trying to find a way to set component when save form.
When i dd() the form data, the items array contains only key/value properties but not the model_id
6 replies
Is it possible to use FileUpload field without using Form build or Form component?
I am working on a project where i need build the Filepond livewire component. I am curios if its possible to use just the fileupload field without using the Form builder.
7 replies
How to add two Create Form Actions
I have a resource and inside create page I am defining create form action in header actions. But the action does not work for some reason, however the default form action works as expected.
following action does not work:
Am i missing something or doing something wrong here?
10 replies
[plugins-dev] How to get resource column in Filamentv3
I am trying to upgrade a plugin to support v3.
In v2 we were able to get table column from specified resource using:
When I try following in Filament v3 i get an error:
Error: Property [$isCachingForms] not found on component
4 replies
Make sidebar closed by default on mobile.
When you login inside Admin panel on mobile for first time, you get the sidebar opened by default. How can i disable that? Ofcourse it would be opened again if i closed and never left opened. But i want to keep it closed for when a user logs in for first time.
Thanks.
13 replies