Apache::Wyrd::Input::Set - Form Input Wyrds (array)
<BASENAME::Input::Set name="numbers" type="pulldown" options="one, two, three" /> <BASENAME::Input::Set name="numbers" type="selections" hash_options="one, One, two, Two, three, Three" /> <BASENAME::Input::Set name="numbers" type="checkboxes"> <BASENAME::Input::Opt name="one" value="One" /> <BASENAME::Input::Opt name="two" value="Two" /> <BASENAME::Input::Opt name="three" value="Three" /> </BASENAME::Input::Set> <BASENAME::Input::Set name="numbers" type="radiobuttons"> <BASENAME::Input::Opt name="one">One</BASENAME::Input::Opt> <BASENAME::Input::Opt name="two">Two</BASENAME::Input::Opt> <BASENAME::Input::Opt name="three">Three</BASENAME::Input::Opt> </BASENAME::Input::Set>
The Set Input extends the regular input to handle the parameters of multiple values. This module designs _startup_foo where foo is:
A set of check-boxes
A pull-down menu of items
A set of radio-buttons
A box of selections
For these, set the type attribute to checkboxes, pulldown, radiobuttons, and selections respectively. see Apache::Wyrd::Input::Set.
Apache::Wyrd::Input::Set
As with Apache::Wyrd::Input, most attributes that can be set for the corresponding HTML tags these Wyrds generate can be set, such as class and onfocus.
Apache::Wyrd::Input
What to call the null option, or the empty value. Defaults to the null string.
When not using Apache::Wyrd::Input::Opt objects to populate the selection, a comma/whitespace-delimited set of options can be given instead.
Apache::Wyrd::Input::Opt
When not using Apache::Wyrd::Input::Opt objects to populate the selection, a comma-delimited hash of options can be given instead. The sequence is param value, param label, param value, param label....
Override the default behavior for parsing options or hash_options by using the indicated regexp as delimiter. Defaults to commas if there are any or whitespace if not.
Do not automatically format the opt area, but allow the options and the HTML around them to remain. This allows manual layout of checkboxes, etc. This implies "nosort".
Do not sort the options.
Do not generate the empty option "" on pulldown menus.
Generate the empty option on pulldown menus, but give it this name, for example "None".
see Apache::Wyrd::Input
Reserves the _generate_output, final_output, and _process_child methods.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
Options of the multi-value Input.
Copyright 2002-2007 Wyrdwright, Inc. and licensed under the GNU GPL.
See LICENSE under the documentation for Apache::Wyrd.
Apache::Wyrd
To install Apache::Wyrd, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::Wyrd
CPAN shell
perl -MCPAN -e shell install Apache::Wyrd
For more information on module installation, please visit the detailed CPAN module installation guide.