-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Documented html5 option #4487
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
Documented html5 option #4487
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
html5 | ||
~~~~~ | ||
|
||
.. versionadded:: 2.6 | ||
The ``html5`` option was introduced in Symfony 2.6. | ||
|
||
**type**: ``boolean`` **default**: ``true`` | ||
|
||
If this is set to ``true`` (the default), it'll use the HTML5 type (date, time | ||
or datetime) to render the field. When set to ``false``, it'll use the text type. | ||
|
||
This is usefull when you want to use a custom JavaScript datapicker, which | ||
often require a text type instead of a HTML5 type. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. requires There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [...] of an HTML type. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. in this case, I specificly talk about the HTML5 types: date, datetime, time. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah sorry, I just noticed that my comment was confusing. I tried to point out that we should use "an" instead of "a". The 5 of HTML5 should be kept of course. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I see, fixed it now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
useful