Skip to content

Commit 03c228e

Browse files
committed
Merge branch 'searchfield' of git://github.com/shieldo/symfony-docs into shieldo-searchfield
2 parents 97127f3 + 8ba03dc commit 03c228e

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

reference/forms/types.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Form Types Reference
3131
types/percent
3232
types/radio
3333
types/repeated
34+
types/search
3435
types/text
3536
types/textarea
3637
types/time

reference/forms/types/map.rst.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Text Fields
99
* :doc:`number</reference/forms/types/number>`
1010
* :doc:`password</reference/forms/types/password>`
1111
* :doc:`percent</reference/forms/types/percent>`
12+
* :doc:`search</reference/forms/types/search>`
1213
* :doc:`url</reference/forms/types/url>`
1314

1415
Choice Fields

reference/forms/types/search.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
.. index::
2+
single: Forms; Fields; search
3+
4+
search Field Type
5+
=================
6+
7+
The ``search`` field is a text field that is used for the entry of searches, and is rendered by default using a ``search`` input type which can be used by user agents to present a specialised rendering for search boxes (such as the `one used in WebKit-based browsers`_).
8+
9+
+-------------+----------------------------------------------------------------------+
10+
| Rendered as | ``input search`` field |
11+
+-------------+----------------------------------------------------------------------+
12+
| Inherited | - ``default_protocol`` |
13+
| options | - ``max_length`` |
14+
| | - ``required`` |
15+
| | - ``label`` |
16+
| | - ``read_only`` |
17+
| | - ``trim`` |
18+
| | - ``error_bubbling`` |
19+
+-------------+----------------------------------------------------------------------+
20+
| Parent type | ``text`` |
21+
+-------------+----------------------------------------------------------------------+
22+
| Class | :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\SearchType` |
23+
+-------------+----------------------------------------------------------------------+
24+
25+
Options
26+
-------
27+
28+
.. include:: /reference/forms/types/options/max_length.rst.inc
29+
30+
.. include:: /reference/forms/types/options/required.rst.inc
31+
32+
.. include:: /reference/forms/types/options/label.rst.inc
33+
34+
.. include:: /reference/forms/types/options/read_only.rst.inc
35+
36+
.. include:: /reference/forms/types/options/trim.rst.inc
37+
38+
.. include:: /reference/forms/types/options/error_bubbling.rst.inc
39+
40+
.. _`one used in WebKit-based browsers`: http://alexking.org/blog/2006/11/12/safari-search-boxes

0 commit comments

Comments
 (0)