#[On('element-clicked')]
public function onElementClicked(string $clickedElementText)
{
// I'm looking to update the 'input' field with the value of $clickedElementText
}
public function editAction(): Action
{
return Action::make('edit')
->fillForm([
'input' => 'Initial'
])
->form([
TextInput::make('input')
])
->action(function (array $data) {
});
}
#[On('element-clicked')]
public function onElementClicked(string $clickedElementText)
{
// I'm looking to update the 'input' field with the value of $clickedElementText
}
public function editAction(): Action
{
return Action::make('edit')
->fillForm([
'input' => 'Initial'
])
->form([
TextInput::make('input')
])
->action(function (array $data) {
});
}