Apache::Wyrd::Input::Opt - Wyrd for passing options to Apache::Wyrd::Input::Set
see SYNOPSIS for Apache::Wyrd::Input::Set
Apache::Wyrd::Input::Set
Roughly equivalent to the <option> HTML tag, but for Apache::Wyrd::Input::Set objects, rather than for <select> tags. Opt provides an option to a Set Input. The label is given either as the value attribute or as the enclosed text. The name attribute is the value added to the list of values for the affected parameter.
Opt accepts most attributes that can be handed to the appropriate HTML tag, i.e. <option>, <checkbox>, or <radio>. These are:
class
onchange
onblur
onfocus
disabled
disabled is set if the attribute disable is set to some value or if the disabled flag is set. Unlike in some versions of HTML tags, disabled on its own in a tag does not disable the Opt Wyrd.
The value this option will represent
The label this option will have (Optional). If not set, the label will be the same as the name.
By default, radio button and checkbox choices override breaking whitespace. This flag disables that override.
(format: (returns) name (arguments after self))
name
The option name.
value
The option label
radiobutton
Return the template for a radiobutton, based on the attributes given this Opt. Called by Apache::Wyrd::Input::Set when making a radiobuttons interface.
checkbox
Return the template for a checkbox, based on the attributes given this Opt. Called by Apache::Wyrd::Input::Set when making a radiobuttons interface.
option
Return the template for a option, based on the attributes given this Opt. Called by Apache::Wyrd::Input::Set when making a radiobuttons interface.
Reserves the _format_output, _generate_output, and final_output methods.
Barry King <wyrd@nospam.wyrdwright.com>
General-purpose HTML-embeddable perl object
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.