4. collapser
Prev | Chapter 5. Content objects | Next

## 4. collapser

collapser(`key`, `value`, ..., `key`, `value`)

Inserts a toggle button in generated content which can be used to collapse a collapsible block or table. See collapsible blocks and tables.

Key | Value | Default | Description
--- | --- | --- | ---
collapsed-icon | url(), disc, circle, square, icon() | icon(collapsed-right) | Icon of the toggle button when the block or table is collapsed.
expanded-icon | url(), disc, circle, square, icon() | icon(expanded-down) | Icon of the toggle button when the block or table is expanded.
tool-tip | String | No default | Tool tip text of the toggle button. A text starting with string "`<html>`" is understood to be styled using HTML (not XHTML). Example: "`<html>Change the <br><b>linkend</b> <br>attribute`".

`Key`, `value`, ..., `key`, `value` may also specify style parameters.

Examples:

    collapser()

    collapser(tool-tip,
              "This is my tool tip!")

    collapser(tool-tip,
              "<html>This is<br><b>my</b>tool tip!")

    collapser(collapsed-icon, icon(pop-right),
              expanded-icon, icon(pop-down),
              color, navy)

Prev | Up | Next
3. check-box | Home | 5. combo-box