Changeset 84 in text-formbuilder for trunk/lib/Text
- Timestamp:
- 05/11/05 14:28:57 (20 years ago)
- Location:
- trunk/lib/Text
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Text/FormBuilder.pm
r83 r84 1135 1135 static 1136 1136 1137 For multi-select fields, append a C<*> to the field type: 1138 1139 colors:select* 1140 1137 1141 To change the size of the input field, add a bracketed subscript after the 1138 1142 field name (but before the descriptive label): … … 1291 1295 =head2 Language/Parser 1292 1296 1293 Support the C<multiple> attribute for a field.1294 1295 1297 Make sure that multiple runs of the parser don't share data. 1296 1298 -
trunk/lib/Text/FormBuilder/grammar
r81 r84 19 19 @options, 20 20 $required, 21 $multiple, 21 22 $list_var, 22 23 $size, … … 187 188 188 189 # this is the real heart of the thing 189 field: name field_size(?) growable(?) label(?) hint(?) type(?) other(?) default(?) option_list(?) validate(?) comment(?)190 field: name field_size(?) growable(?) label(?) hint(?) type(?) multi(?) other(?) default(?) option_list(?) validate(?) comment(?) 190 191 { 191 192 my $field = { … … 194 195 label => $item{'label(?)'}[0], 195 196 comment => $item{'hint(?)'}[0], 197 multiple => $item{'multi(?)'}[0], 196 198 type => $item{'type(?)'}[0], 197 199 other => $item{'other(?)'}[0], … … 218 220 $type = undef; 219 221 $required = undef; 222 $multiple = undef; 220 223 $list_var = undef; 221 224 $size = undef; … … 254 257 builtin_field: /textarea|text|password|file|checkbox|radio|select|hidden|static/ 255 258 259 multi: '*' { 1 } 260 256 261 other: '+' 'other' { 1 } 257 262
Note: See TracChangeset
for help on using the changeset viewer.