Jifty::Web::Form::Element - Some item that can be rendered in a form
Describes any HTML element that might live in a form, and thus might have javascript on it.
Handlers are placed on Jifty::Web::Form::Element objects by calling the name of the javascript event handler, such as onclick, with a set of arguments.
onclick
The format of the arguments passed to onclick (or any similar method) is a hash reference, with the following possible keys:
An action (or moniker of an action) to be submitted when the event is fired.
The region that should be updated. This defaults to the current region.
Arguments to the region. These will override the default arguments to the region.
The fragment that should go into the region. The default is whatever fragment the region was originally rendered with.
Currently, the only supported event handlers are onclick.
Any descendant of Jifty::Web::Form::Element should be able to accept any of the event handlers (above) as one of the keys to its new parameter hash.
new
Returns the javsscript necessary to make the events happen.
Sets the CSS class that the element will display as
Sets the key binding associated with this elements
Subclasses must override this to provide each element with a unique id.
Sets the label of the element. This will be used for the key binding legend, at very least.
Adds the key binding for this input, if one exists.
To install Jifty, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Jifty
CPAN shell
perl -MCPAN -e shell install Jifty
For more information on module installation, please visit the detailed CPAN module installation guide.