Download the PHP package becklyn/ordered-form-bundle without Composer
On this page you can find all versions of the php package becklyn/ordered-form-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download becklyn/ordered-form-bundle
More information about becklyn/ordered-form-bundle
Files in becklyn/ordered-form-bundle
Download becklyn/ordered-form-bundle
More information about becklyn/ordered-form-bundle
Files in becklyn/ordered-form-bundle
Vendor becklyn
Package ordered-form-bundle
Short Description This bundle adds functionality for ordering form elements
License BSD-3-Clause
Homepage https://github.com/Becklyn/OrderedFormBundle
Package ordered-form-bundle
Short Description This bundle adds functionality for ordering form elements
License BSD-3-Clause
Homepage https://github.com/Becklyn/OrderedFormBundle
Please rate this library. Is it a good library?
Informations about the package ordered-form-bundle
Ordered Form Bundle
A bundle that makes form fields sortable.
Installation
Usage
This bundle adds a new form option called position
:
The supported values are:
Value | Description |
---|---|
"position" => "first" |
Places the element as the first element in the form. |
"position" => "last" |
Places the element as the last element in the form. |
"position" => 42 |
A simple sort order (the lower the number, the more at the top it is). Works with any integer. |
"position" => ["before" => "otherfield"] |
Places the field before another one. |
"position" => ["after" => "otherfield"] |
Places the field after another one. |
Caveats
This bundle focuses on speed, so the sorting is not perfect. As it is pretty easy to create a conflicting, this bundle tries a best-effort sorting, but this implies:
- A
first
field isn't guaranteed to be the first one (eg. if there are multiplefirst
). before
andafter
only guarantee the relative order, not how big the distance is between these fields (it tries to place them immediately next to each other).
If the configuration of the form is sensible and conflict-free, then the order will work as expected.
All versions of ordered-form-bundle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
symfony/config Version ^5.4.3 || ^6.0.3 || ^7.0
symfony/dependency-injection Version ^5.4.3 || ^6.0.3 || ^7.0
symfony/form Version ^5.4.3 || ^6.0.3 || ^7.0
symfony/http-kernel Version ^5.4.4 || ^6.0.4 || ^7.0
symfony/config Version ^5.4.3 || ^6.0.3 || ^7.0
symfony/dependency-injection Version ^5.4.3 || ^6.0.3 || ^7.0
symfony/form Version ^5.4.3 || ^6.0.3 || ^7.0
symfony/http-kernel Version ^5.4.4 || ^6.0.4 || ^7.0
The package becklyn/ordered-form-bundle contains the following files
Loading the files please wait ....