fikurimax
fikurimax
Explore posts from servers
FFilament
Created by fikurimax on 7/6/2024 in #❓┊help
Lazy load select options after clicking the element
How to populate the options (in my case is requesting to another server) when the element is clicked. My problem now is the option() will obtain the data immediately whenever the select element shown, which in my case sometimes can cause timeout (so the loading also took so long)
2 replies
FFilament
Created by fikurimax on 5/18/2024 in #❓┊help
Add Action group in a custom infolist layout
I have a custom infolist layout which doing a for loop. And on each item there is a button that will do something with the item on the loop. The error occurs when I click the button ("Confirm"), it says App\Livewire\Modals\BillingCustomerInvoiceList::getInfolist(): Argument #1 ($name) must be of type string, null given. Any workarounds? This is the custom layout I have
<div>
@if ($this->invoices->isNotEmpty())
@foreach ($this->invoices as $invoice)
<div class="flex flex-row gap-2 rounded-lg bg-gray-900 mx-2 p-4">
<div class="grow flex flex-col gap-2">
...
</div>
<div class="grow-0 flex flex-col">
{{ $this->confirmAction($invoice->id) }}
</div>
</div>
@endforeach
@else
<div class="flex flex-col items-center justify-center">
Unavailable
</div>
@endif

<x-filament-actions::modals />
</div>
<div>
@if ($this->invoices->isNotEmpty())
@foreach ($this->invoices as $invoice)
<div class="flex flex-row gap-2 rounded-lg bg-gray-900 mx-2 p-4">
<div class="grow flex flex-col gap-2">
...
</div>
<div class="grow-0 flex flex-col">
{{ $this->confirmAction($invoice->id) }}
</div>
</div>
@endforeach
@else
<div class="flex flex-col items-center justify-center">
Unavailable
</div>
@endif

<x-filament-actions::modals />
</div>
And this is the confirmAction() on the main infolist modal
public function confirmAction(int $invoiceId): ActionGroup
{
return ActionGroup::make([
Action::make('confirm_action')
->label('Confirm')
->requiresConfirmation()
->action(function () {
dd('confirm');
})
]);
}
public function confirmAction(int $invoiceId): ActionGroup
{
return ActionGroup::make([
Action::make('confirm_action')
->label('Confirm')
->requiresConfirmation()
->action(function () {
dd('confirm');
})
]);
}
1 replies
FFilament
Created by fikurimax on 5/16/2024 in #❓┊help
Populate options when clicking the select element
My select options are obtained from third party API and there is a possibility that the API is taking too long to respond. Currently the options are populated right after the select element is mounted which took the loading so long. How can I populate the options when I click the select element?
14 replies
FFilament
Created by fikurimax on 5/3/2024 in #❓┊help
Refreshing resource on a custom action in a widget
I have a custom widget which contains an action button (opening a modal and doing some things). I want to refresh the resource (table) whenever the action modal is finished. How can I do that? Any help appreciated thank you
2 replies
FFilament
Created by fikurimax on 2/4/2024 in #❓┊help
Update field state every time other field updated without using $set()
I want to make my field (e.g total) updated every time I change other fields (e.g tax, price, discount). Using $set on each field is quite complicated, is it possible to update it on the total field instead?
14 replies
RRailway
Created by fikurimax on 1/30/2024 in #✋|help
Env variable can't be read by laravel
No description
11 replies
FFilament
Created by fikurimax on 1/25/2024 in #❓┊help
How to stop request update polling
No description
1 replies
FFilament
Created by fikurimax on 1/25/2024 in #❓┊help
Custom login / register -like page
I want to add a custom layout that can be accessed on the login/register page. How can I extend main layout? The login/register itself is customized using livewire page, and I want to make another custom page. Here are the changes I've made 1. Register the livewire page on web.php 2. Redirect using redirect()->route('custom-page') from the login/register 3. extend <x-filament-panels::page.simple> but got error undefined vars
2 replies
FFilament
Created by fikurimax on 10/15/2023 in #❓┊help
Show loading on dependant select options
Is there a way to show loading icon like spinning bar when using this? https://filamentphp.com/docs/3.x/forms/advanced#dependant-select-options
1 replies
FFilament
Created by fikurimax on 9/6/2023 in #❓┊help
Change background color
No description
9 replies
FFilament
Created by fikurimax on 9/5/2023 in #❓┊help
Where to apply non-sticky topbar css?
No description
12 replies
FFilament
Created by fikurimax on 9/4/2023 in #❓┊help
Insert button before notification
No description
7 replies
FFilament
Created by fikurimax on 9/4/2023 in #❓┊help
How to make the logo not hidden when clicking hide sidebar
No description
6 replies
FFilament
Created by fikurimax on 9/3/2023 in #❓┊help
User menu action (without url) like darkmode buttons
No description
3 replies
FFilament
Created by fikurimax on 9/1/2023 in #❓┊help
How to remove X and Y in pie chart
No description
5 replies
FFilament
Created by fikurimax on 8/19/2023 in #❓┊help
Accessing model collection on table heading
3 replies
FFilament
Created by fikurimax on 8/17/2023 in #❓┊help
Show button loading on custom action button
The loading indicator is shown if I use ->action() but not with ->submit(). How can i show it using ->submit()?
3 replies
FFilament
Created by fikurimax on 8/15/2023 in #❓┊help
Wizard hiting Next jump to the next step in other wizard (within other livewire)
I have two wizard (separate livewire), when I click Next, the other wizard in the different livewire also move to the next step. I've tried to assign the id for each wizard steps but doesnt work. How do i prevent this?
1 replies
FFilament
Created by fikurimax on 8/11/2023 in #❓┊help
Submitting form on each steps in Wizard layout
Is it possible to submit form on the action button on each steps? If so how can I do that Thanks
10 replies
FFilament
Created by fikurimax on 8/9/2023 in #❓┊help
Wizard form hit enter action to the next step
I am using this wizard in modal how to make 'enter' key jump to the next step
2 replies