Open
Description
It would be nice to have functions or options to add Stimulus attributes on form widgets.
Something like
$builder->add('country', CountryType::class, [
'attr' = stimulus_target('path/to/controller', 'targetName')
]);
or
$builder->add('country', CountryType::class, [
'stimulus_target' = ['path/to/controller', 'targetName']
]);
Same goes for stimulus_action
and stimulus_controller