Help:ToggleDisplay

From Apache OpenOffice Wiki
Revision as of 11:48, 17 November 2009 by Ccornell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

See: Extension:ToggleDisplay

This extension allows you to show and hide regions on a page by clicking on a link.

The simplest usage is:

<toggledisplay>
hidable text
</toggledisplay>

What you will see is a link "[show details]" in small font and nothing else. When you click on the link, the hidable text will be shown and the link text changes to "[hide details]". When you click again, you return to the initial state.

The following optional parameters can be provided in the <toggledisplay> tag:

Parameter Default Explanation
status hide Initial state when the page is first displayed. May be hide or show.
showtext [show details] Link text when hidable area is hidden.
hidetext [hide details] Link text when hidable area is shown.
linkstyle font-size:smaller CSS style specification for the link.
Personal tools