CardPanelScope
The receiver of a CardPanel's content, through which a child names the card it is placed on.
Children are written plainly; the card a child names rides along on its modifier:
CardPanel(selectedCard = page) {
Label(text = "Welcome", modifier = SwingModifier.card("welcome"))
Label(text = "Details", modifier = SwingModifier.card("details"))
}Content copied to clipboard
See also
Functions
Link copied to clipboard
Places the child on the card named key, the card the panel shows while its selectedCard equals that key. The name follows the value: a child declaring a new key moves to that card, keeping its position among its siblings.