milkslices
milkslices
FFilament
Created by milkslices on 6/4/2024 in #❓┊help
Programmatically change the values of a single Livewire component form action
Turns out the answer was relatively simple:
#[On('element-clicked')]
public function onElementClicked(string $clickedElementText)
{
$this->editAction->fillForm([
'input' => $clickedElementText
]);
}
#[On('element-clicked')]
public function onElementClicked(string $clickedElementText)
{
$this->editAction->fillForm([
'input' => $clickedElementText
]);
}
5 replies
FFilament
Created by milkslices on 6/4/2024 in #❓┊help
Programmatically change the values of a single Livewire component form action
I've added an example to make what I'm trying to do clearer as the form is defined on the action itself and shown within the modal that opens
5 replies