File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ Form Types Reference
31
31
types/percent
32
32
types/radio
33
33
types/repeated
34
+ types/search
34
35
types/text
35
36
types/textarea
36
37
types/time
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ Text Fields
9
9
* :doc:`number</ reference/forms/types/number> `
10
10
* :doc:`password</ reference/forms/types/password> `
11
11
* :doc:`percent</ reference/forms/types/percent> `
12
+ * :doc:`search</ reference/forms/types/search> `
12
13
* :doc:`url</ reference/forms/types/url> `
13
14
14
15
Choice Fields
Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments