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: <lib\quickforms.js>.
| 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 Attributes | Method Name and Description |
|---|---|
|
toHTML()
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
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.