Download the PHP package stakovicz/ux-collection without Composer
On this page you can find all versions of the php package stakovicz/ux-collection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download stakovicz/ux-collection
More information about stakovicz/ux-collection
Files in stakovicz/ux-collection
Package ux-collection
Short Description UX Collection for Symfony Forms
License MIT
Informations about the package ux-collection
UX Form Collection
Symfony UX Form collection is a Symfony bundle providing light UX for collection in Symfony Forms.
Installation
UX Form Collection requires PHP 7.2+ and Symfony 4.4+.
Install this bundle using Composer and Symfony Flex:
Also make sure you have at least version 2.0 of @symfony/stimulus-bridge
in your package.json
file.
You need to select the right theme from the one you are using :
You have 2 different themes :
@FormCollection/form_theme_div.html.twig
@FormCollection/form_theme_table.html.twig
Check the Symfony doc for the different ways to set themes in Symfony.
Usage
The most common usage of Form Collection is to use it as a replacement of the native CollectionType class:
Extend the default behavior
Symfony UX Form Collection allows you to extend its default behavior using a custom Stimulus controller:
Then in your render call, add your controller as an HTML attribute:
All versions of ux-collection with dependencies
symfony/config Version ^4.4.17|^5.0
symfony/dependency-injection Version ^4.4.17|^5.0
symfony/form Version ^4.4.17|^5.0
symfony/http-kernel Version ^4.4.17|^5.0