oodin53
oodin53
FFilament
Created by oodin53 on 8/18/2023 in #❓┊help
change view dynamically in a page
I found the solution with add key parameter in component : @livewire('components.'.$componentName, [], key($key)) and in changeTab function, add : $this->key = random_int(-999, 999);
4 replies
FFilament
Created by oodin53 on 8/18/2023 in #❓┊help
change view dynamically in a page
I try this : <ul role="presentation"> <li role="presentation"> <button id="tab1-tab" wire:click="changeTab('tab1')" type="button" role="tab" aria-controls="tab1" aria-selected="false"> Tab1 </button> </li> <li role="presentation"> <button id="tab2-tab" wire:click="changeTab('tab2')" type="button" role="tab" aria-controls="tab2" aria-selected="false"> Tab2 </button> </li> {{ dump($componentName) }} <div id="{{$componentName}}" role="tabpanel" aria-labelledby="{{$componentName}}-tab"> @livewire('components.'.$componentName) </div> And in my Page : public function changeTab(string $name) { $this->componentName = $name; } The dump is correct, but the view doesn't change
4 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
Thank you, it's OK with this code : Tables\Actions\AttachAction::make() ->recordSelectSearchColumns(['clubs.name']) ->recordTitle(fn (Squad $record): string => "{$record->club->name} ({$record->id})"),
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
i have already Try, but i have an error : Method Filament\Tables\Actions\AttachAction::modifyRecordSelectUsing does not exist.
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
in my table squad, there is a belongsTo relation to Club
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
yes
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
and I would like to search in the relationship ("clubs" table) and not "squads".
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
21 replies
FFilament
Created by oodin53 on 8/4/2023 in #❓┊help
Problem to attach on relationManager
Thank you for your answer. In fact, by removing recordTitleAttribute, I no longer get an error and it works, but in the drop-down list for associating a club, I still get "squad" displayed. How can I customize the display of this list to show the club name?
21 replies