Download the PHP package insitaction/easyadmin-fields-bundle without Composer
On this page you can find all versions of the php package insitaction/easyadmin-fields-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download insitaction/easyadmin-fields-bundle
More information about insitaction/easyadmin-fields-bundle
Files in insitaction/easyadmin-fields-bundle
Package easyadmin-fields-bundle
Short Description Set of easyadmin fields and useful helpers for Insitaction
License MIT
Informations about the package easyadmin-fields-bundle
EasyAdminFieldsBundle
Installation
Run the following command to install EasyAdminFields in your application:
Use the bundle assets
Without the helper method
Fields
Mask field
The mask field allows you to show or hide other fields depending on one field's value
Usage
-
With the MaskField wrapper
- Directly adding form type options to your field
Configuration
The map configuration works like this:
- The key corresponds to an input value
- The value is an array of field names
With this map configuration :
The author
field is shown only when true
is the input value, otherwise, the author
field is masked
With this map configuration :
The field1
field is shown when either A
or B
is the input value, the field2
field is shown when either B
or C
is the input value
Dependent field
The dependent field can wrap ChoiceField or AssociationField to make their available options dynamic If any of the field dependencies is updated, a request is emitted to retrieve new options for the dependent field
Usage
- With the DependentField wrapper
Configuration
Dependencies
The dependencies
array is an array of string corresponding to other fields name
With this dependencies configuration, the callback will be called everytime the gender
field is updated
Callback Url
The callback_url
must be an url that accepts a GET request which returns data of this format:
The following query parameters will be sent with the request (this corresponds to the dependencies array and the corresponding field value)
Fetch on init
The fetch_on_init
parameter defines wheter or not the callback should be executed immediatly after the field is
mounted
All versions of easyadmin-fields-bundle with dependencies
symfony/framework-bundle Version ^v6.1|^7.0
easycorp/easyadmin-bundle Version ^4
symfony/webpack-encore-bundle Version ^1.15|^2