Folding Elements: -oxy-foldable / -oxy-folded / -oxy-not-foldable-child
Used to configure whether or not the content of an element can be expanded or collapsed.
- Toggle Fold
- Toggles the state of the current fold.
- Collapse Other Folds
- Folds all the elements except the current element.
- Collapse Child Folds
- Folds the elements indented with one level inside the current element.
- Expand Child Folds (Ctrl + NumPad+ (Command + NumPad+ on macOS))
- Unfolds all child elements of the currently selected element.
- Expand All
- Unfolds all elements in the current document.
-oxy-foldable
Property
This property defines whether or not the content for an element can be
folded by the user. To define that an element's content can be
folded, use the -oxy-foldable:true
property.
-oxy-folded
Property
-oxy-foldable
property and it defines the elements that are
folded by default. To define an element to be folded by default,
use the -oxy-folded:true
property.-oxy-folded
property works in conjunction with the
-oxy-foldable
property, the -oxy-folded
property is
ignored if the -oxy-foldable
property is not set on the same
element.-oxy-not-foldable-child
Property
When collapsing an element, it is useful to keep some of its content
visible (for example, a short description of the collapsed region). The
-oxy-not-foldable-child
property is used to identify the child element
that is kept visible. As its value, it accepts an element name or a list of comma-separated
element names. The first occurrence of each child element specified in the list of element
names will be identified as the not-foldable child and displayed. If the
element is marked as foldable (-oxy-foldable:true;
) but it
does not have the -oxy-not-foldable-child
property or none of the specified
non-foldable children exist, then the element is still foldable.
In this case, the element kept visible when folded will be the
before
pseudo-element.
Example: Folding DocBook Elements
<title>
child element and are considered to
be logical sections. You mark them as being foldable leaving the
<title>
element
visible.set,
book,
part,
reference,
chapter,
preface,
article,
sect1,
sect2,
sect3,
sect4,
section,
appendix,
figure,
example,
table {
-oxy-foldable:true;
-oxy-not-foldable-child: title;
}
foldable
, folded
, and
not-foldable-child
properties are deprecated and the equivalent with the
-oxy
prefix should be used instead.