Fabien
Fabien
Hello @itomxi, Use the following: ``` AssociationField::new('marks')->setFormTypeOption('attr', ['data-ea-allow-clear' => 'false']); ``` Kind regards
My bad! I thought `data-ea-allow-clear` (from your original post) was an existing option and you didn't know how to pass it to the view. I didn't see such feature in...
Hello, You can do it this way: ``` // inject EasyCorp\Bundle\EasyAdminBundle\Router\AdminUrlGenerator in your CrudController $url = $this ->adminUrlGenerator ->unsetAll() ->setController(self::class) ->setAction('renderInvoice') ->set('type', 'pdf') ->generateUrl(); $viewInvoice = Action::new('viewInvoice', 'Invoice', 'fa fa-file-invoice')...
Same problem here.
There is further information here but not sure on how to diagnose issue with toggle switch: https://stackoverflow.com/questions/58215104/whats-the-neterr-http2-protocol-error-about Here is my console output:  I guess the "classList" error is a...
Hello @kissifrot, This is how I proceed in such cases thanks to EasyAdmin events. Let's say the main entity is Library and related one is Book. 1. Add a non-mapped...
Hello @a-r-m-i-n, You can set up default value at Doctrine entity level or add this to your field configuration: ``` ->setFormTypeOption('empty_data', $value) ``` or ``` ->setFormTypeOptions(['required' => false, 'empty_data' =>...
I worked on a workaround as I needed this feature. Add the following Javascript: ``` // js/app.js function handleBatchDisableConfirm() { document.querySelectorAll('.disable-confirm').forEach(actionBtn => { actionBtn.addEventListener('click', function() { let modal = document.getElementById('modal-batch-action');...