Hung Thai
Hung Thai
FFilament
Created by dyo on 10/26/2024 in #❓┊help
Before method in repeater delete action
you can delete the Item from repeater like:
...->action(function (array $arguments, Repeater $component): void {
$items = $component->getState();
unset($items[$arguments['item']]);
$component->state($items);
$component->callAfterStateUpdated();
})
...->action(function (array $arguments, Repeater $component): void {
$items = $component->getState();
unset($items[$arguments['item']]);
$component->state($items);
$component->callAfterStateUpdated();
})
23 replies
FFilament
Created by dyo on 10/26/2024 in #❓┊help
Before method in repeater delete action
You need to create a custom delete action and disable the origin delete action from the repeater. like Repeater::make()...->deletable(false)->extraItemActions([ ... //your custom delete logic here ])
23 replies
FFilament
Created by Hung Thai on 10/17/2024 in #❓┊help
How can I get the parent Resource from RelationManager class?
that method return the parent record of the relationship, what i'm trying to get is the full path of the ClassName like : App\Filament\Resources\UserResource from the ContactRelationManager...
6 replies
FFilament
Created by TheSoulrester on 10/9/2024 in #❓┊help
ViewAction::Make() in users list to show transactions of a user
If your dont create an action, how can you open the modal? You need to create a custom action for your User list table/record, loaded it with your relationship (HasMany) to show the correct table/form/infolist in a modal if that's all you want. There's no other way around this modal requirement if you're using Filament only.
11 replies
FFilament
Created by ocram82 on 9/20/2024 in #❓┊help
Disable view action when click on row
just add this after your $table ->recordAction(null)->recordUrl(null)
11 replies
FFilament
Created by ζ͜͡Gurthang on 9/11/2024 in #❓┊help
Livewire component in blade template
<x-filament-panels::page> use filament page component when you generate it with php artisan make:filament-page where do you want to add your table? Livewire page or Filament generated page?
6 replies
FFilament
Created by Twixzor on 9/9/2024 in #❓┊help
Modal resource editing
Up. I'm looking for the same effect but haven't found any yet.
16 replies
FFilament
Created by sneevilz on 9/11/2024 in #❓┊help
Navigation Group
10 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
I'm sorry, but can I ask one more question? How can I call the Modal without redirecting to the resource page? Like when I'm on the Dashboard Page, I can click on the custom product link, and only open the modal infolist view without redirecting to the product resource page?
14 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
Thank you
14 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
thank you so much
14 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
Oh, I've try putting your code into the List page, it kinda worked
14 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
yes, I mean, sort of. I've created the infolist, and then call it when click on the row with the ->recordAction(Tables\Actions\ViewAction::class) method. Sorry, my english was bad.
14 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
hi. Thanks for your reply. What if I use the Full Resource pages? (I mean, Creat/Edit/List child pages inside the Resource), what would I do in that case?
14 replies
FFilament
Created by Hung Thai on 9/10/2024 in #❓┊help
Call modal record view from anywhere.
Anyone?
14 replies
FFilament
Created by Daniel on 4/9/2024 in #❓┊help
how to use set in a repeater
what do you mean by this? for ex, I have a structure like: -- TextFather: Name -- Repeater: ----Text-Input How can I set the Text-Input inside the Repeater with the value of TextFather (which is Name)?
14 replies
FFilament
Created by urbycoz on 6/19/2024 in #❓┊help
Adding a "show more/less" toggle to long description in infolist
sorry I replied to the wrong thread
7 replies
FFilament
Created by putrafajarh on 7/7/2024 in #❓┊help
Repeater Toggle others
You can use the method on each Toggle ->fixIndistinctState()
3 replies
FFilament
Created by urbycoz on 6/19/2024 in #❓┊help
Adding a "show more/less" toggle to long description in infolist
Hi bro, did you find any solution yet?
7 replies