InlineCollapse

class InlineCollapse(val text: InlineContent, val placeholder: InlineContent, val isOpen: Boolean) : TextNode

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

Parameters

text

expanded content

placeholder

content to show when the node is collapsed

isOpen

whether the node is expanded at the beginning

Constructors

Link copied to clipboard
constructor(text: InlineContent, placeholder: InlineContent, isOpen: Boolean)

Types

Link copied to clipboard
object Companion

Properties

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

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