NavigationContainer

class NavigationContainer(val role: NavigationContainer.Role? = null, val children: List<Node>) : NestableNode

Creates a navigation container, which marks its content as a navigable section.

This doesn't affect the layout of the document by itself, but can be used by themes and renderers to provide additional navigation features, styling, behaviors and accessibility.

Constructors

Link copied to clipboard
constructor(role: NavigationContainer.Role? = null, children: List<Node>)

Types

Link copied to clipboard

Role of the NavigationContainer, indicating its purpose in the document.

Properties

Link copied to clipboard
open override val children: List<Node>
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

Retrieves the stored media associated with this node, if any.

Link copied to clipboard