Collapse

class Collapse(val title: InlineContent, val isOpen: Boolean, val children: List<Node>) : NestableNode

A collapsible block, whose content can be hidden or shown by interacting with it.

Parameters

title

title of the block

isOpen

whether the block is open at the beginning

Constructors

Link copied to clipboard
constructor(title: InlineContent, isOpen: Boolean, children: List<Node>)

Properties

Link copied to clipboard
open override val children: List<Node>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun <T> accept(visitor: NodeVisitor<T>): T

Accepts a visitor.

Link copied to clipboard

Returns a sequence of all nodes in the tree, where this is the root node. The sequence is generated by traversing the tree in depth-first order. The root node is excluded from the sequence.

Link copied to clipboard