Slots

class Slots(val names: List<String>, val content: SlotAttachment? = null) : ChildPlacement

Named regions that each hold at most one child, plus at most one unnamed child that fills the host's content when it declares one.

Every other child names the region it fills. A declaration names at least one region or declares content.

Constructors

Link copied to clipboard
constructor(names: List<String>, content: SlotAttachment? = null)
constructor(vararg names: String, content: SlotAttachment? = null)

The same declaration written as Slots("Viewport { }").

Properties

Link copied to clipboard

Installs a created child that names no region; null refuses such a child. Declare it once, as a val, since it is compared by identity.

Link copied to clipboard

The calls that fill the host's regions, as a caller writes them.

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String