Skip to content
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

Documenting overriden options #2361

Closed
19 tasks done
wouterj opened this issue Mar 26, 2013 · 0 comments
Closed
19 tasks done

Documenting overriden options #2361

wouterj opened this issue Mar 26, 2013 · 0 comments
Labels
actionable Clear and specific issues ready for anyone to take them. Form
Milestone

Comments

@wouterj
Copy link
Member

wouterj commented Mar 26, 2013

Some form types override their parent options. For instance, the Language type is a child of the Choice type with the choices (in default) set to all languages.

How to document it

These options should get documented under a new section ('Overriden options') in each type in the reference. They should look the same as all other options in this reference. You should link to them in a new table row in the table on top of each reference article.

For instance, the Language type should look like:

+------------+------------+
| ...        | ...        |
+------------+------------+
| Overriden  | - `years`_ |
| options    |            |
+------------+------------+
| ...        | ...        |
+------------+------------+

Overriden Options
-----------------

years
~~~~~

**type**: ``array`` **default**: 120 years ago to the current year

List of years available to the year field type. This option is only relevant
when the ``widget`` option is set to ``choice``.

Inherit Options
---------------

...

Overriden options

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.

Most of these options are already documented in the article, but should only be moved.

Birthday

Choice

  • error_bubbling
  • by_reference is not overriden, it should get moved to the Inherit
    options
    section

Country

Csrf

Date

Entity

Form

Hidden

Language

Locale

Repeated

Time

Timezone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
actionable Clear and specific issues ready for anyone to take them. Form
Projects
None yet
Development

No branches or pull requests

1 participant