oodin53
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 change4 replies
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