BUTTON{"text" ...} -- renders a nice button
- Parameters:
Parameter: Description: Default: "text", value="text" text to be put on this button accesskey access key used for this button class extra class: use foswikiRightorfoswikiLeftto specify aligment; usecyan,red,greenfor different background colors; usesimplefor a non-3D buttonhref url of the click target # icon icon to be put on the left; note, this can be any icon attached to the {IconSearchPath}; see also VarJQICONid html id for this button onclick javascript event triggered when clicking the button onmouseout javascript event triggered when the pointer leaves the button onmouseover javascript event triggered when the pointer hovers over the button target topic to open when clicking on the button title popup title displayed when hovering over the button type type of action to be performed; available actions are - button: (default) normal click button, target specified in
targetorhrefparameter - clear: clears all input fields in the form that contains the button
- reset: resets all input fields in a form to their initial value
- submit: submits the form that contains the button
- save: same as
submitbut takes care of extra validation steps when saving a wiki topic
button - button: (default) normal click button, target specified in
- Example:
%BUTTON{ "%MAKETEXT{"Submit"}%" click="confirm('Are your sure?')" }% %BUTTON{ "%MAKETEXT{"Cancel"}%" icon="cross" target="%WEB%.%TOPIC%" }% %CLEAR% - Expands as:
- Note: BUTTONS are floating to the left by default. Take care to add a
%CLEAR%after the%BUTTON{...}%so that further content does not overlap with the button. - Related: JQueryButton
History: r1 - 20 Sep 2010 - 05:57:05 - ProjectContributor