zesimples
zesimples
FFilament
Created by zesimples on 10/31/2024 in #❓┊help
How customize Repeater's item using Livewire component?
In my case, I dont have extra actions ... I was needing to get this $arguments['item'] inside schema method, but, it is not possible
8 replies
FFilament
Created by zesimples on 10/31/2024 in #❓┊help
How customize Repeater's item using Livewire component?
How do I make each line of my Repeater with custom component to have the current item? If we look at the itemLabel method, it has by default a $state that represents the current line, so you can customize the title. But, Within the schema method, the variable $state does not just represent a line, but rather the state of the Repeater as a whole, being multi-dimensional array. But, how do I do this?
8 replies
FFilament
Created by zesimples on 10/31/2024 in #❓┊help
How customize Repeater's item using Livewire component?
For each item in my Repeater, I will have another custom Livewire component.
class OpportunityQuoteItem extends Component
{
public ?array $item = [];

public function mount($item)
{
$this->item = $item;
}

public function render()
{
return view('livewire.opportunity.quote-item');
}
}
class OpportunityQuoteItem extends Component
{
public ?array $item = [];

public function mount($item)
{
$this->item = $item;
}

public function render()
{
return view('livewire.opportunity.quote-item');
}
}
8 replies