From 8e5a16460e85ff5a54151ebc34a2d0fc4bb289da Mon Sep 17 00:00:00 2001 From: Antoine Lamirault Date: Wed, 10 Jan 2024 22:09:18 +0100 Subject: [PATCH] [Form] Add option separator to ChoiceType to use a custom separator after preferred choices --- reference/constraints/Choice.rst | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/reference/constraints/Choice.rst b/reference/constraints/Choice.rst index 5a9c365be37..1a3e6d356f0 100644 --- a/reference/constraints/Choice.rst +++ b/reference/constraints/Choice.rst @@ -389,3 +389,25 @@ Parameter Description =============== ============================================================== .. include:: /reference/constraints/_payload-option.rst.inc + +``separator`` +~~~~~~~~~~~~~ + +**type**: ``string`` **default**: ``-------------------`` + +This option allows you to customize separator after preferred choices. + +.. versionadded:: 7.1 + + The ``separator`` option was introduced in Symfony 7.1. + +``separator_html`` +~~~~~~~~~~~~~~~~~~ + +**type**: ``boolean`` **default**: ``false`` + +If this option is true, `separator`_ option will be display as HTML instead of text + +.. versionadded:: 7.1 + + The ``separator_html`` option was introduced in Symfony 7.1.