Toggle headers111¶
Show/Hide Code
1 2 | from plone import api
...
|
дальше там трешачина туда не смотри
-
.. toggle-header::
class
¶
«toggle-header» directive creates a block with a visible heading for the hidden content. The heading can be clicked to view/hide the hidden content. Optional attribute class adds css class for hidden content. Required option header sets text of the heading of the hidden content.
Full example:
.. toggle-header::
:header: Example 1 **Show/Hide Code**
Content for header
will be rendered like this:
Generated HTML code:
<div class="toggle-header open">
<p>Example <strong>Show/Hide Code</strong></p>
</div>
<div class="toggle-content docutils container">
Content for header
</div>
More examples¶
jgf-jgf