pinoooh
pinoooh
FFilament
Created by pinoooh on 6/4/2024 in #❓┊help
default value when hidden()
Looking at this now, and altering the state in the beforeSave looks slightly better than using an additional field I guess... thanks for thinking along though!
11 replies
FFilament
Created by pinoooh on 6/4/2024 in #❓┊help
default value when hidden()
no, it's right next to the toggle
11 replies
FFilament
Created by pinoooh on 6/4/2024 in #❓┊help
default value when hidden()
an extra (hidden) field... that's clever. Is there no way to achieve the same result but with methods on the original (hidden/visible) field?
11 replies
FFilament
Created by pinoooh on 2/8/2024 in #❓┊help
Enum in TextEntry of InfoList
thanks for your reply but the state is already cast to an enum (by the model)
6 replies
FFilament
Created by Csinesz on 8/7/2023 in #❓┊help
CheckboxList options set some value to checked
This works for me:
CheckboxList::make('components')
->options([
'one' => 'One',
'two' => 'Two',
'three' => 'Three',
])
->afterStateHydrated(static function (Set $set, $state): void {
$set('components', ['one', 'two']);
});
CheckboxList::make('components')
->options([
'one' => 'One',
'two' => 'Two',
'three' => 'Three',
])
->afterStateHydrated(static function (Set $set, $state): void {
$set('components', ['one', 'two']);
});
67 replies
FFilament
Created by Mark Chaney on 8/2/2023 in #❓┊help
Testing Table Action with modal
Just ran into the same problem. Reading through this post helped me fix it: mount the action before you call it:
Livewire::test(PropertyManagersTable::class, ['propertyManagementCompany' => $propertyManagementCompany])
->mountTableAction('remove_action')
->callTableAction('remove_action', record: $user->property_manager)
->assertHasNoTableActionErrors();
Livewire::test(PropertyManagersTable::class, ['propertyManagementCompany' => $propertyManagementCompany])
->mountTableAction('remove_action')
->callTableAction('remove_action', record: $user->property_manager)
->assertHasNoTableActionErrors();
this worked for me, so thanks!
39 replies
FFilament
Created by pinoooh on 2/8/2024 in #❓┊help
Enum in TextEntry of InfoList
Didn't find a solution to this problem, but I have a "workaround": use a ViewEntry, then load a table in a new livewire component within the view. In the table I can use TextColumn which has support for the enum.
6 replies