Embperl::Form::Control::submit - A button inside an Embperl Form
{ type => 'submit', text => 'send', name => 'foo', value => 'xxx', image => 'xxx', onclick => 'window.open (...)', button => [ { onclick => 'do_something()', style => 'border: 1px solid black;', }, { name => 'foobar', value => 'Click here, too', onclick => 'do_something()', class => 'HurzCSSClass', onmouseover => 'do(this)'; onmouseout => 'do(that)'; } ] }
Used to create an submit control inside an Embperl Form. If an image is given it will create an image button. See Embperl::Form on how to specify parameters.
Needs to be 'button'
Name of the button
Will be used as label for the submit button or tool tip in case of an image button
Gives the value to send
URL of an image. If given an image button will be created, if absent, an normal submit button will be created.
Javascript that should be executed when the users clicks on the button.
hashref of the key-value pairs of all attribute the button needs.
G. Richter (richter@dev.ecos.de), A. Beckert (beckert@ecos.de)
perl(1), Embperl, Embperl::Form
To install Embperl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Embperl
CPAN shell
perl -MCPAN -e shell install Embperl
For more information on module installation, please visit the detailed CPAN module installation guide.