All notable changes to this project will be documented in this file.
-
Added the ability to set form (help) text for form controls, e.g.:
$form->add('email', EmailType::class, [ 'help' => "We'll never share your email with anyone." ]);
- Bug fix: Fixed data binding not working for collection types (#13)
- Bug fix: Allow passing both shorthand types e.g.
text
to AbstractType::add() - DX: Generic typing in TypeLocator
- Bug fix: The
required
attribute is now correctly omitted on a select field if therequired
option is set tofalse
in theChoiceType
configuration (#9)
- Added data binding to map form data to an object or an array. Read the docs page for more information
- Bug fix: Allow
CollectionType
entry types to be scalar. Previously, the entry type data was required to be an array which threw a fatal error if the data was a string for example. (#7)
- Added
renderRest
method to render all remaining unrendered fields.
Added functionality to render fields individually with a new renderField
method. Among other things, this allows
developers to fully utilise Bootstrap's grid system by rendering fields in different columns.
Added support for Bootstrap 5. This was achieved by:
- Adding the
mb-3
class alongsideform-group
to div wrappers - Adding the
form-label
class to form labels