ico
Filament v2 Repeater can't detect when item deleted
How do i catch when i have deleted item from the Repeater in Filament v2 form builder ?
i tried with
afterStateHydrated
and afterStateUpdated
but it doesn't work, i don't get the dd()
I saw that in the Repeater
class it registers listeners like repeater::deleteItem
. I tried to catch that event but it didn't work also1 replies
Filament v2 Form Builder: How to add button in Repeater ?
How do i add a button in a repeater item ?
I have a Repeater with 4 TextInputs that represent some product data. I want to add a button next to them, so when the user clicks on it it will show more information about the fields, or will print out in a PDF format information about the product
5 replies
Filament v2 property null when searching
I have a filament table from a livewire component.
Witch i want to make it be dynamic to work with different logic per table
I have a
mount()
method that looks like:
and my methods look like this
But when i go to a next page or try to use the search i get that the tableProperty
is null
if i add the initialize of the tableProperty
in each method everything is normal
But this does not look good in my opinion.
So what must i do to escape this repeating and initialize the tableProperty
just once ?4 replies
Filament v3 not detecting Tailwind classes
When i add a text input to have extra attributes like for example
It doesn't color the textinput
My
tailwind.config.js
When i upgraded to Livewire v3 i chose to keep the current namespace App\Htpp\Livewire
thats why that is in the content
key
My filament form is actually in the same folder. I am building the form from a Livewire component. But the styling doesn't render.
What am i missing ?27 replies
Reactive field inside a dynamic generated schema Filament v3
I have a schema that is generated dynamicly like so based on a selected field
And the
$this->defectListSchema
contains many fields like this
But when i type anything in the numberOfDefects
field that is reactive the entire form goes blank, disappears.
What could be the problem ?25 replies
Filament v3 Resource does not fill the Edit form
Hello i integrated the Filament package into a existing Laravel 10 project.
When i followed the guide for the panels i discovered that after i have created a Resource ( when i filled the logic for the Table ) it doesn't fill the Edit form with the selected record.
My table looks like this (from the docs and demo on github )
And my Edit page is almost blank
Was looking around found some were doing with the
->record()
method so i tried
But didn't make a difference
So what do i need to do to fill my Edit form with the selected record ?21 replies
How to dynamically generate Field schemas in Filament v3
I have 2 sections
1st the user will pick a item from a select
After it is picked the 2nd section needs to be visible and be filled with many text inputs based on what the user has picked from the select.
But when i try to generate the schema on the spot it gives me a error
Property type not supported in Livewire for property: [{}]
Code:
The updateDefects()
triggers a generateDefectListSchema()
method for generating the 2nd section schema
generateDefectListSchema()
The $schema
is filled correctly i can see the result when i dd($schema)
13 replies
Filament v3 Wizard layout color schema.
Ever since i switched to Filament v3 the color schema of the Wizzard layout form changedfrom the default (light) to dark. I tried to add the
In the
config/filament.php
but it didn't do anything
How can i change it back to the original or create a custom theme ?13 replies
Filament V3 and Livewire V3 scripts
After a followed the upgrade guide for livewire i moved to the upgrade guide of filament.
The Livewire guide told me that i can use the app.js like:
Then all i need to do in the base layout is to replace the
@livewireScripts
with @livewireScriptConfig
Then in the filament upgrade guide they say
The styles i have replaced the and removed from app.css
but the JS scripts are a little different..... since they say that i don't need the imports
from the app.js
and they are loaded in the @filamentScripts
Now i am puzzeled since witch to use since adding both ( @filamentScripts
and @@livewireScriptConfig
) at the end of the layout results into multiple alpine livewire starts warnings and errors.
So i removed almost everything related to livewire and alpine from the the app.js
and replaced the new @livewireScriptConfig
with @filamentScripts
Is this how it should be ?
Won't i be missing some scripts that Livewire uses or everything will be loaded by the @filamentScripts
?
What if i want to add a Alpine plugin how should i do that ?4 replies