Skip to content

Commit 645af3f

Browse files
committed
minor #19410 [Form] Add option separator to ChoiceType to use a custom separator after preferred choices (alamirault)
This PR was merged into the 7.1 branch. Discussion ---------- [Form] Add option `separator` to `ChoiceType` to use a custom separator after preferred choices Fix #19400 Commits ------- 8e5a164 [Form] Add option separator to ChoiceType to use a custom separator after preferred choices
2 parents b179a98 + 8e5a164 commit 645af3f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

reference/constraints/Choice.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,25 @@ Parameter Description
389389
=============== ==============================================================
390390

391391
.. include:: /reference/constraints/_payload-option.rst.inc
392+
393+
``separator``
394+
~~~~~~~~~~~~~
395+
396+
**type**: ``string`` **default**: ``-------------------``
397+
398+
This option allows you to customize separator after preferred choices.
399+
400+
.. versionadded:: 7.1
401+
402+
The ``separator`` option was introduced in Symfony 7.1.
403+
404+
``separator_html``
405+
~~~~~~~~~~~~~~~~~~
406+
407+
**type**: ``boolean`` **default**: ``false``
408+
409+
If this option is true, `separator`_ option will be display as HTML instead of text
410+
411+
.. versionadded:: 7.1
412+
413+
The ``separator_html`` option was introduced in Symfony 7.1.

0 commit comments

Comments
 (0)