hrank8t
hrank8t
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Same thing, the create page opens after 1/5 seconds.
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Trying in resource
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
If i put the sleep there, the create dialog takes 1 second to open. I put sleep(10) the create dialog took 10seconds to open 😃
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Yes. it's live
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
No description
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Forms\Components\DatePicker::make('appointment_date') ->minDate(today()) ->native(false) ->format('Y-m-d') ->closeOnDateSelection() // ->after(now()) ->live() ->required(), Forms\Components\Select::make('appointment_time') ->native(false) ->live() ->hint(new HtmlString(Blade::render('<div wire:loading wire:target="data.appointment_time">Loading... </div> <x-filament::loading-indicator class="h-5 w-5" wire:loading />'))) ->options(function (Get $get) { if (empty($get('appointment_date'))) { return []; } else { return (new AppointmentService())->getAvailableTimesForDate($get('appointment_date')); } }) // ->hidden(fn (Get $get) => !$get('appointment_date')) ->rules([ fn (Get $get): Closure => function (string $attribute, string $value, Closure $fail) use ($get) { $appointments = (new AppointmentService())->getAvailableTimesForDate($get('appointment_date')); if (!array_key_exists($value, $appointments)) { $fail('Sorry, the time slot is not available. Please pick another time slot.'); } }, ]) ->required(),
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
No, tried throttling for 5 secs.
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
if i remove wire:target, even on create button click it shows loading, which is not desirable
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
I too have gone through this, but somehow don't know why it's not working in filament form.
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
i tried wire:target="data.appointment_time" and wire:target="appointment_time" both didn't work
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Nope. Even after using live, it won't work.
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Oh. Let me try using ->live()
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
coz setting wire:target='data.appointment_time' doesn't show the loader
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
Coz the appointment service is a third party api call
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
No description
35 replies
FFilament
Created by PabloZagni on 6/2/2024 in #❓┊help
Form Select Loading indicator while filling from API
how to get the wire:target or rather see the contents data variable? When I add wire:target on my select, it doesn't show.
35 replies
FFilament
Created by hrank8t on 6/28/2024 in #❓┊help
select with loading indicator
Thanks Got it.
6 replies
FFilament
Created by hrank8t on 6/28/2024 in #❓┊help
select with loading indicator
For those who are looking for the link https://discord.com/channels/883083792112300104/1246909761551732766/1246915286926491689 Also, I didn't use the wire:target on it to work for me.
6 replies
FFilament
Created by hrank8t on 5/7/2024 in #❓┊help
One Relationship Manager firing created notification twice
No. I'm unable to duplicate it, but it's happening for 2 models which are not used anywhere except in the relationship manager of another resource.
9 replies
FFilament
Created by James on 6/28/2024 in #❓┊help
Widget table actions
5 replies