You are here:
Foswiki
>
System Web
>
Macros
>
VarTWISTYTOGGLE
(18 Jun 2015,
ProjectContributor
)
(raw view)
E
dit
A
ttach
---+ TWISTYTOGGLE -- Twisty Toggle contents section ---++ Parameters %TABLE{sort="off"}% | *Parameter* | *Description* | *Default* | | =id= | Used to link [[VarTWISTYSHOW][TWISTYSHOW]], [[VarTWISTYHIDE ][TWISTYHIDE ]] and [[VarTWISTYTOGGLE][TWISTYTOGGLE]]. | required | | =mode= | ="div"= or ="span"= Specify if the Twisty Toggle section will use a =<div>= or a =<span>= tag. Note that if the contents contains block elements such as =div=, =mode= should be =div= as well to create valid HTML markup. | =<div>= | | =class= | CSS class name for content div or span | | | =linkclass= | CSS class name for link | | | =remember= | If ="on"=, the Twisty state is remembered the next time the page is shown. If ="off"=, the stored setting will be cleared.<br /> *Note:* when used, think carefully about a unique name (id) for the Twisty, otherwise the cookie that is set might affect other Twisties with the same name. Also note that only interaction is stored, not the state of the Twisty when left unclicked. | | | =start= | ="hide"= or ="show"= Initial state of the Twisty; this will override any setting stored in a cookie (see =remember=). | | | =firststart= | ="hide"= or ="show"= Initial state of the Twisty the first time the visitor gets to see the Twisty; this will NOT override cookie settings (see =remember=). | | | =noscript= | =hide= to make content hidden in case use does not have !JavaScript on | | ---++ Examples <verbatim class="tml">%TWISTYTOGGLE{id="demo" mode="div" remember="on"}%My content%ENDTWISTYTOGGLE%</verbatim> %STOPINCLUDE% ---++ Related %SEARCH{"name=~'TWISTY' AND name!='%TOPIC%'" type="query" format=" * [[$topic][$pattern(.*?---\++ ([^\n]*).*)]]" nonoise="on"}% <!--%JQREQUIRE{"chili"}%-->
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 - 18 Jun 2015,
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
GEO_CitSci
GEO_SIF
GEO_Spain
Main
Sandbox
System
Copyright © by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki?
Send feedback