You are here:
PANDA Wiki
>
System Web
>
JQueryPlugin
>
VarBUTTON
(20 Sep 2010,
ProjectContributor
)
(raw view)
E
dit
A
ttach
#VarBUTTON ---+++ 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 =foswikiRight= or =foswikiLeft= to specify aligment; \ use =cyan=, =red=, =green= for different background colors; \ use =simple= for a non-3D button | | | href | 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 VarJQICON | | | id | 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 \ <ul>\ <li>button: (default) normal click button, target specified in =target= or =href= parameter </li>\ <li>clear: clears all input fields in the form that contains the button</li>\ <li>reset: resets all input fields in a form to their initial value </li>\ <li>submit: submits the form that contains the button</li>\ <li>save: same as =submit= but takes care of extra validation steps when saving a wiki topic </li>\ </ul> | button | * Example: <verbatim class="tml">%BUTTON{ "%MAKETEXT{"Submit"}%" onclick="confirm('Are your sure?')" }% %BUTTON{ "%MAKETEXT{"Cancel"}%" icon="cross" target="%WEB%.%TOPIC%" }% %CLEAR%</verbatim> * Expands as: <div>%BUTTON{ "%MAKETEXT{"Submit"}%" onclick="confirm('Are your sure?')" }% %BUTTON{ "%MAKETEXT{"Cancel"}%" icon="cross" target="%WEB%.%TOPIC%" }% %CLEAR%</div> * Note: BUTTONS are floating to the left by default. Take care to add a =%<nop>CLEAR%= after the =%<nop>BUTTON{...}%= so that further content does not overlap with the button. * Related: JQueryButton
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 20 Sep 2010,
ProjectContributor
System
Log In
or
Register
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Cerenkov
Pandacerenkov
DCS
Daq
Pandadaq
Detector
EMC
EMPAnalysis
Forwardstraws
GEM
MC
Magnet
Main
Mvd
PANDAMainz
PWA
Pbook
Personalpages
Physics
Baryons
CharmoniumAndExotics
HadronsInNuclei
OpenCharm
PhysicsCmt
SPC
STT
Sandbox
ScrutinyGroup
System
Tagpid
Pandatagpid
Tagtrk
Pandatagtrk
Target
ClusterJetTarget
Tof
WebServices
YoungScientists
ZArchives
Български
_jméno_jazyka
Dansk
Deutsch
English
Español
Suomi
Français
Italiano
日本語
한글
Nederlands
Norsk
Polski
Português
Português brasileiro
Русский
Svenska
简体中文
正體中文
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding PANDA Wiki?
Send feedback