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. |
hide-when-disabled | Boolean: yes|no, 1|0, "true"|"false", "on"|"off" | no | When the toggle button is disabled (for example because the collapsible block is empty):
|
show-level-menu | Boolean: yes|no, 1|0, "true"|"false", "on"|"off" | no | When specified as yes , this option adds " ", " ", ..., " " items to the pop-up menu displayed after right-clicking on the generated toggle button. These menu items invoke command "toggleCollapsed showLevel " in XMLmind XML Editor - Commands. |
tool-tip | String | No default | Tool tip text of the toggle button. A text starting with string " |
Key
, value
, ..., key
, value
may also specify style parameters, however only the color property will be honored.
Examples:
collapser() collapser(tool-tip, "This is my tool tip!", color, navy) collapser(tool-tip, "<html>This is<br><b>my</b>tool tip!") collapser(collapsed-icon, url(collapsed.png), expanded-icon, url(expanded.png))