Difference: TwistyPlugin (3 vs. 4)

Revision 42007-11-19 - TWikiAdminUser

Line: 1 to 1
 

TwistyPlugin

A "twisty" is an interface toggle control to show and hide content.

Line: 190 to 190
 
%TWISTY{
showlink="Show..."
Changed:
<
<
hidelink="Hide
>
>
hidelink="Hide"
 start="hide" }% my twisty content
Line: 199 to 199
  %TWISTY{ showlink="Show..."
Changed:
<
<
hidelink="Hide
>
>
hidelink="Hide"
 start="hide" }% my twisty content
Line: 325 to 325
  %TWISTY{ prefix="

!!"

Added:
>
>
mode="div"
 link="Header" showimgleft="/twiki/pub/TWiki/TWikiDocGraphics/toggleopen.gif" hideimgleft="/twiki/pub/TWiki/TWikiDocGraphics/toggleclose.gif"
Line: 422 to 423
 
link Link label Link label for both show and hide links optional
hidelink Link label Hide link label optional
showlink Link label Show link label optional
Changed:
<
<
mode "div" or "span" Specify if the Twisty Toggle section will use a <div> or a <span> tag. optional, defaults to <span>
>
>
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. optional, defaults to <span>
 
showimgleft Image url Specify the url of an image that will be displayed with the show link at the left side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
hideimgleft Image url Specify the url of an image that will be displayed with the hide link at the left side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
showimgright Image url Specify the url of an image that will be displayed with the show link at the right side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
Line: 464 to 465
 
Changed:
<
<
mode "div" or "span" Specify if the Twisty button will use a <div> or a <span> tag optional, defaults to <span>
>
>
mode "div" or "span" Specify if the Twisty button 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. optional, defaults to <span>
  • Example: %TWISTYBUTTON{id="myid" link="more"}%%TWISTYTOGGLE{id="myid"}%content%ENDTWISTYTOGGLE%
 

Line: 475 to 477
 
Parameter Value Description Remark
id Unique identifier Used to link TWISTYSHOW, TWISTYHIDE and TWISTYTOGGLE required
link Link label Show link label optional
Changed:
<
<
mode "div" or "span" Specify if the Twisty Show link will use a <div> or a <span> tag optional, defaults to <span>
>
>
mode "div" or "span" Specify if the Twisty Show link 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. optional, defaults to <span>
 
img Image url Specify the url of an image that will be displayed at the right side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
imgleft Image url Specify the url of an image that will be displayed at the left side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
imgright Image url Specify the url of an image that will be displayed at the right side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
Line: 493 to 495
 
Parameter Value Description Remark
id Unique identifier Used to link TWISTYSHOW, TWISTYHIDE and TWISTYTOGGLE required
link Link label Hide link label optional
Changed:
<
<
mode "div" or "span" Specify if the Twisty Hide link will use a <div> or a <span> tag optional, defaults to <span>
>
>
mode "div" or "span" Specify if the Twisty Hide link 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. optional, defaults to <span>
 
img Image url Specify the url of an image that will be displayed at the right side of the link.
You may use ICONURLPATH to display one of the TWikiDocGraphics icons. Alternatively use an image attached to the topic.
optional, defaults to no image
remember "on", "off" If "on", the Twisty state is remembered the next time the page is shown. If "off", the stored setting will be cleared.
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.
optional, no default
start "hide" or "show" Initial state of the Twisty; this will override any setting stored in a cookie (see remember). optional, default no initial state
Line: 508 to 510
 
Changed:
<
<
mode "div" or "span" Specify if the Twisty Toggle section will use a <div> or a <span> tag. optional, defaults to <span>
>
>
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. optional, defaults to <span>
 
class CSS class name Class for content div or span optional, default none
remember "on", "off" If "on", the Twisty state is remembered the next time the page is shown. If "off", the stored setting will be cleared.
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.
optional, no default
start "hide" or "show" Initial state of the Twisty; this will override any setting stored in a cookie (see remember). optional, default no initial state
Line: 595 to 597
 

Plugin Info

Authors: TWiki:Main.RafaelAlvarez, TWiki:Main.ArthurClemens
Changed:
<
<
Copyright ©: 2005 Rafael Alvarez; 2006, 2007 Arthur Clemens
>
>
Copyright ©: 2005 Rafael Alvarez; 2006-2008 Arthur Clemens
 
License: GPL
Dependencies: None
Changed:
<
<
Plugin Version: 03 Aug 2008 (version 1.4.10)
>
>
Plugin Version: 10 Oct 2008 (version 1.4.12)
 
Change History:
<-- versions below in reverse order -->
 
Added:
>
>
08 Oct 2008 1.4.11, 1.4.12 It is now possible to have a twisty on the same line without a linebreak.
 
03 Aug 2008 1.4.10 TWiki 4.2.1 release version
13 Dec 2007 1.4.9 fix to the loading order of javascript files in head
24 Nov 2007 1.4.6 - 1.4.8 Arthur Clemens - Added format tokens.
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TwistyPlugin.