I'm trying to use input-groups in easy-admin3, as much as I search the net, I can't find any ideas?
My question is if it is possible to add it by specifying the config from the configureFields method as the "setFormTypeOption" is used to specify certain properties and not have to create a file file.html.twig for this
$emailFields = TextField::new('email')->setFormTypeOption("attr.maxlength", 100);
if($pageName==Crud::PAGE_EDIT || $pageName==Crud::PAGE_NEW){
$tagFields
->setFormTypeOption("attr.class", 'check-field')
->setFormTypeOption("attr.style", "text-transform:uppercase")
// something like that
//->setFormTypeOption("attr.input-group", "@example.com")
}
I believe you can add a class or other attributes like this
But what you want to do needs to work with the form theme template:
To form_theme.html.twig
To Dashboard controller
Finally to your field