public function infolist(Schema $schema): Schema
{
return $schema
->statePath('data')
->components([
TextInput::make('foobar')
->live()
->suffixAction(
Action::make('update')
->label('Update')
->action(fn(Get $get, $state, $data, $value) => dd($value, $data, $state, $get('foobar')) // All empty
)
),
]);
}
public function infolist(Schema $schema): Schema
{
return $schema
->statePath('data')
->components([
TextInput::make('foobar')
->live()
->suffixAction(
Action::make('update')
->label('Update')
->action(fn(Get $get, $state, $data, $value) => dd($value, $data, $state, $get('foobar')) // All empty
)
),
]);
}