ByteXR
ByteXR
FFilament
Created by ByteXR on 1/4/2024 in #❓┊help
Wizard still showing "Next" when steps hidden dynamically
Hidden::make('user_status')->default('available')->live(),
Wizard::make([
Step::make('User Email')
->schema([
...
])
->afterValidation(fn ($get, $set) => $this->checkUser($get('email'), $set)),
Step::make('Check & Details')
->schema([
...
]),
Step::make('Confirm')
->schema([
...
])
->visible(fn (Get $get): bool => $get('user_status') === 'available')
])
->columnSpan(2)
Hidden::make('user_status')->default('available')->live(),
Wizard::make([
Step::make('User Email')
->schema([
...
])
->afterValidation(fn ($get, $set) => $this->checkUser($get('email'), $set)),
Step::make('Check & Details')
->schema([
...
]),
Step::make('Confirm')
->schema([
...
])
->visible(fn (Get $get): bool => $get('user_status') === 'available')
])
->columnSpan(2)
checkUser method just set user_status depending on some checks, that bit works as step is being hidden, the only thing that stays is "Next" button instead of submit
5 replies
FFilament
Created by ByteXR on 7/24/2023 in #❓┊help
Reload table results from Page Action
Ignore me, I am just a bit simple 😄 The issue was that my table was inside Widget and I was refreshing Page and not Widget 🤦‍♂️ I will see myself out xD
4 replies
FFilament
Created by ByteXR on 7/13/2023 in #❓┊help
Action does not refresh page component
Thank you! Don't think it will work in my case as it is not a form, think I am going to have to issue livewire event
4 replies
FFilament
Created by GHOST-117 on 6/27/2023 in #❓┊help
Handle record creation
It is way better practice to use mutators in what are you doing: https://laravel.com/docs/10.x/eloquent-mutators#accessors-and-mutators As laravel will automatically do it for you
5 replies
FFilament
Created by dyo on 6/27/2023 in #❓┊help
Test case in edit record page
Are you use your $user has correct permissions to enter filament admin. Because 403 would like be caused by that
6 replies
FFilament
Created by DivDax on 6/26/2023 in #❓┊help
Use chart widget (standalone)
Hi @divdax ! I believe it is coming in v3! Might be a plugin to do it now, but I am not sure ^^
14 replies
FFilament
Created by qcol on 6/25/2023 in #❓┊help
How to check the status of a theme in resource?
You could do something along these lines:
->extraAttributes([
'style' => Arr::toCssStyles([
'color: NOT_DARK_MODE' => !config('tables.dark_mode'),
'color: DARK_MODE' => config('tables.dark_mode'),
])
])
->extraAttributes([
'style' => Arr::toCssStyles([
'color: NOT_DARK_MODE' => !config('tables.dark_mode'),
'color: DARK_MODE' => config('tables.dark_mode'),
])
])
Tho I suggest using classes instead 🙌
7 replies
FFilament
Created by Tur on 6/25/2023 in #❓┊help
Custom text form fields as array
Sorry just bit confused 😅
4 replies
FFilament
Created by Tur on 6/25/2023 in #❓┊help
Custom text form fields as array
you could use repeater to do this. What is exact issue you are having, does the state not write to timetable[1] ? have you tried timetable.1 ?
4 replies
FFilament
Created by rabol on 6/25/2023 in #❓┊help
Is it possible to remove the number on the wizard steps at runtime
I don't believe it is currently possible to remove number, you can replace it with icon. My suggestion would be you could extend Wizard class and have your own blade file which would allow you to add some extra options, but I don't think you can do this out the box
3 replies
FFilament
Created by benshawuk on 6/24/2023 in #❓┊help
Is there a way to "stack" filters?
ignore me, i read question entirely wrong 😄 sorry
8 replies
FFilament
Created by benshawuk on 6/24/2023 in #❓┊help
Is there a way to "stack" filters?
.
8 replies
FFilament
Created by benshawuk on 6/24/2023 in #❓┊help
Is there a way to "stack" filters?
Hi! If you are talking about tables I believe that is already the case. Maybe the way your filters setup?
8 replies
FFilament
Created by Mingo on 6/24/2023 in #❓┊help
add timestamp in form
Cannot wait for v3 and infolists for all view only data 😍
10 replies
FFilament
Created by jkbcoder on 6/24/2023 in #❓┊help
page header
Problem is if you define protected ?string $heading =null; it falls back to getTitle() which automatically creates heading depending on page name
4 replies
FFilament
Created by jkbcoder on 6/24/2023 in #❓┊help
page header
You can get around not having header if you do something like this: protected function getHeading(): string|Htmlable { return ''; }
4 replies
FFilament
Created by calmjohnson on 6/24/2023 in #❓┊help
Class "Filament\Forms\Components\TextArea" not found
Hi! I know Macs allow namespaces to be upper and lowercase and it doesn't care, but most of the servers do care! I believe the class is actually Filament\Forms\Components\Textarea.php and not Filament\Forms\Components\TextArea.php, that might be causing issues
6 replies
FFilament
Created by Kiran Timsina on 6/24/2023 in #❓┊help
Help with reactive view
If it's 2 separate livewire components you could use ->afterStateUpdated on the field and trigger livewire event, thats the only thing i can think off, but there might be a better way https://filamentphp.com/docs/2.x/forms/advanced#field-lifecycle https://laravel-livewire.com/docs/2.x/events
2 replies
FFilament
Created by alcmz on 6/24/2023 in #❓┊help
Re-size the Widgets Card to 3 Column/Grid
see Filament\Pages\Page.php
15 replies
FFilament
Created by alcmz on 6/24/2023 in #❓┊help
Re-size the Widgets Card to 3 Column/Grid
its cause by default it is 2: protected function getHeaderWidgetsColumns(): int | string | array { return 2; }
15 replies