Class QuickButton

Creates a QuickButton, a self-contained button that when pressed submits a form that contains a bunch of parameter/value pairs.
Defined in: quickforms.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
QuickButton(label, opts, inputs)
Creates a QuickButton, a self-contained button that when pressed submits a form that contains a bunch of parameter/value pairs.
Method Summary
Method Attributes Method Name and Description
 
Converts this QuickButton to HTML mark-up.
Class Detail
QuickButton(label, opts, inputs)
Creates a QuickButton, a self-contained button that when pressed submits a form that contains a bunch of parameter/value pairs.

Supported options (all optional):

  • method: "get" or "post" (defaults to "get")
  • action: path to submit to, defaults to current path
Parameters:
{string} label
a label for the button
{object} opts
a dictionary of options
{object} inputs
a dictionary of parameter/value mappings to submit
Method Detail
{string} toHTML()
Converts this QuickButton to HTML mark-up. This is called for you when you print a QuickButton.
Returns:
{string} html-formatted string.

©2011 by JGate on AppJet
Documentation generated by JsDoc Toolkit 2.1.0 on Thu Jan 06 2011 10:36:33 GMT+0100 (MEZ)