root/trunk/examples/patExampleGen/sections_element.php

Revision 357, 4.7 kB (checked in by argh, 2 years ago)

Added the new SwitchGroup? element used for handling checkbox groups that behave like a Set element (example included).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 <?php
2 /**
3  * Definitions for the examples on the patForms element collection
4  *
5  * $Id$
6  *
7  * @package        patForms
8  * @subpackage    Examples
9  * @author        Sebastian Mordziol <argh@php-tools.net>
10  */
11
12     $sections['Element'] = array(
13         'descr'        =>    'These examples show how to create forms with the main patForms API, as
14                         well as    how to use elements on their own.',
15         'basename'    =>    'example_element_',
16         'pages'        =>    array(
17             'string' => array(
18                 'state'    =>    'Stable',
19                 'title'    =>    'String',
20                 'descr'    =>    'Simple text input field element.'
21             ),
22             'text' => array(
23                 'state'    =>    'Stable',
24                 'title'    =>    'Text',
25                 'descr'    =>    'Simple multiline text input field element. It also validates against tags.
26                             They may allow all or some tags and/or deny all or some tags. Please note, that
27                             the "deniedtags" attribute has priority. Try different combinations with empty
28                             attributes, "*" and comma-separated tag-lists',
29             ),
30             'number' => array(
31                 'state'    =>    'Stable',
32                 'title'    =>    'Number',
33                 'descr'    =>    'Simple number input field element.',
34             ),
35             'hidden' => array(
36                 'state'    =>    'Stable',
37                 'title'    =>    'Hidden',
38                 'descr'    =>    'Probably the simplest of all form elements: the hidden input field.'
39             ),
40             'date' => array(
41                 'state'    =>    'Beta',
42                 'title'    =>    'Date',
43                 'descr'    =>    'Powerful date input element that can generate text input elements or
44                             select boxes from a date format string. Just specify the date format,
45                             and the date element displays a form element for each part of the date
46                             format, including any time information. TIP: Try changing the presets attribute
47                             to \'yes\'',
48             ),
49             'set' => array(
50                 'state'    =>    'Stable',
51                 'title'    =>    'Set',
52                 'descr'    =>    'Set element with auto-sizing feature that will automatically adjust the
53                             size of the select box to the amount of entries in the box. Also has the
54                             possibility to set min/max amount of entries that have to be selected.',
55             ),
56             'pool' => array(
57                 'state'    =>    'Stable',
58                 'title'    =>    'Pool',
59                 'descr'    =>    'Pool element - like the Set element but with different user interface for
60                             data input.',
61             ),
62             'pool_multi' => array(
63                 'state'    =>    'Stable',
64                 'title'    =>    'Pool (multi)',
65                 'descr'    =>    'Pool element - multiple sets in one form are also possible as the javascript
66                             for each element is bound to the element.',
67             ),
68             'switch' => array(
69                 'state'    =>    'Stable',
70                 'title'    =>    'Switch',
71                 'descr'    =>    'Simple checkbox element',
72             ),
73             'switchgroup' => array(
74                 'state'    =>    'Devel',
75                 'title'    =>    'Switch Group',
76                 'descr'    =>    'Checkbox group element that can generate a list of
77                             checkboxes like the Set element. Also has data source
78                             support to be able to retreive elements list dynamically
79                             from an external source.',
80             ),
81             'enum' => array(
82                 'state'    =>    'Stable',
83                 'title'    =>    'Enum',
84                 'descr'    =>    'Select box element with data source support to be able to retreive box elements
85                             list dynamically from a datasource, which can be a function or a method of an
86                             existing class. Also supports advanced options like auto-sizing.',
87             ),
88             'enum_optgroup' => array(
89                 'state'    =>    'Stable',
90                 'title'    =>    'Enum (optgroup)',
91                 'descr'    =>    'Select box element with data source support to be able to retreive box elements
92                             list dynamically from a datasource, which can be a function or a method of an
93                             existing class. Also supports advanced options like auto-sizing.',
94             ),
95             'combobox' => array(
96                 'state'    =>    'Alpha',
97                 'title'    =>    'Combobox',
98                 'descr'    =>    'Combobox, that works with and without javascript.',
99             ),
100             'radio' => array(
101                 'state'    =>    'Stable',
102                 'title'    =>    'Radio Button',
103                 'descr'    =>    'Radiobutton element that can serialize a single radiobutton element.',
104             ),
105             'radiogroup' => array(
106                 'state'    =>    'Stable',
107                 'title'    =>    'Radio Group',
108                 'descr'    =>    ' Radiobutton group element that can generate a list of
109                             radiobuttons like the Enum element. Also has data source
110                             support to be able to retreive elements list dynamically
111                             from an external source.',
112             ),
113             'file' => array(
114                 'state'    =>    'Beta',
115                 'title'    =>    'File',
116                 'descr'    =>    'Advanced File upload field that uses sessions to store file data and
117                             makes handling uploaded files very easy. User only needs to upload files
118                             once - if other elements in the form are not valid, the uploaded files
119                             will be kept in a cache until the form can be finalized.',
120             ),
121             'group' => array(
122                 'state'    =>    'Beta',
123                 'title'    =>    'Group',
124                 'descr'    =>    'The group element enables you to group several form elements together
125                             and even set a custom renderer for the group to create form output with fieldsets,
126                             for example.',
127             ),
128         )
129     );
130 ?>
Note: See TracBrowser for help on using the browser.