Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Form] Documenting new priority option #15324

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Documenting form field priority option
  • Loading branch information
yceruto committed May 10, 2021
commit 454087da68f63fda7577969a55554f73a1f88f56
3 changes: 3 additions & 0 deletions 3 reference/forms/types/form.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ on all types for which ``FormType`` is the parent.
| | - `translation_domain`_ |
| | - `label_translation_parameters`_ |
| | - `attr_translation_parameters`_ |
| | - `priority`_ |
+---------------------------+--------------------------------------------------------------------+
| Default invalid message | This value is not valid. |
+---------------------------+--------------------------------------------------------------------+
Expand Down Expand Up @@ -189,3 +190,5 @@ of the form type tree (i.e. it cannot be used as a form type on its own).
.. include:: /reference/forms/types/options/label_translation_parameters.rst.inc

.. include:: /reference/forms/types/options/attr_translation_parameters.rst.inc

.. include:: /reference/forms/types/options/priority.rst.inc
10 changes: 10 additions & 0 deletions 10 reference/forms/types/options/priority.rst.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
priority
~~~~~~~~

**type**: ``integer`` **default**: ``0``

Allows you to set the field rendering priority. This option will affect
the view order only, sorting all fields in order of importance instead of
simply numerical order, i.e. fields with higher priority will be rendered
first, fields with lower priority will be rendered last and fields with
equal priority will keep the original order.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.