-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Documenting all missing options #2362
Comments
Meanwhile (7e06f9f), the following options have been documented:
|
thanks @xabbuh, updated the PR |
What do we do with the |
@xabbuh they are part of Symfony, but in the |
I know. I think my question was not clear enough. I'm wondering if this list also applies to the FormType? Specifically, why should the |
@xabbuh disabled was added in 2.1, not 2.0. This list does not fully apply to 2.1. |
So that's not a problem anymore. I'll walk through the list one by one and will provide an updated list. |
@wouterj for 2.0, disabled was the same option than read_only in 2.1+ |
The following options need to be documented:
|
I think some options are already documented. So it's an updated list:
|
@wouterj can you update the list in the description (maybe adding references to the pull requests for each option too)? |
@xabbuh I've rechecked everything and updated my form type tree: https://gist.github.com/WouterJ/5246728 I'll update this issue this week |
Create description for "compound" option.
closing in favor of #3410 |
The Form Type Reference has some missing options.
How to document it
Most of the missing options are already documented. You should check in the
reference/forms/types/options/
directory to find if the option is already documented and if the description is correct for this type. If it is, you should add an include statement in the type reference article:If the description is not correct for this type, you need to document it in the type reference article:
Some description and usage of the type.
If there is no documentation about the option and it is used in other types, you should create a new file in the
reference/forms/types/options/
directory and include it in the relevant articles.The Missing Options in 2.0
The options are all linked to the place where they are defined in the core code. However, search in the class to find some usage and other important information about the option you're documenting.
DateTime
widget
(allowedvalues)
empty_value
Field
data_class
read_only
max_length
pattern
by_reference
error_bubbling
error_mapping
label
invalid_message
invalid_message_parameters
disabled
option should get removedForm
virtual
Integer
precision
(the docs already exists in the Number type, just create a
precision.rst.inc
and include it in both)Time
empty_value
The text was updated successfully, but these errors were encountered: