Container

class Container(val width: Size? = null, val height: Size? = null, val fullWidth: Boolean = false, val float: Container.FloatAlignment? = null, val fullColumnSpan: Boolean = false, val className: String? = null, val style: NodeStyle = NodeStyle.DEFAULT, val children: List<Node>) : NestableNode, StylableNode

A general-purpose container that groups content.

Parameters

width

width of the container

height

height of the container

fullWidth

whether the container should take up the full width of the parent. Overridden by width

float

floating position of the container within the subsequent content

fullColumnSpan

whether the container should span across all columns in a multi-column layout

className

custom class name for the container, useful for applying custom styles, if supported by the renderer

Constructors

Link copied to clipboard
constructor(width: Size? = null, height: Size? = null, fullWidth: Boolean = false, float: Container.FloatAlignment? = null, fullColumnSpan: Boolean = false, className: String? = null, style: NodeStyle = NodeStyle.DEFAULT, children: List<Node>)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val children: List<Node>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val height: Size?
Link copied to clipboard
open override val style: NodeStyle

The style of this node.

Link copied to clipboard
val width: Size?

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
fun Node.withChildren(newChildren: List<Node>): Node

Returns a copy of this node with its children replaced by newChildren.

Link copied to clipboard