kvision / pl.treksoft.kvision.panel / FlexPanel / add

add

fun add(child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: Int? = null, alignSelf: FlexAlignItems? = null, classes: Set<String> = setOf()): FlexPanel

Adds a component to the flexbox container.

Parameters

child - child component

order - child flexbox ordering

grow - child flexbox grow

shrink - child flexbox shrink

basis - child flexbox basis

alignSelf - child self alignment

classes - a set of CSS class names

open fun add(child: Component): FlexPanel

Overrides SimplePanel.add

Adds given component to the current container.

Parameters

child - child component

Return
current container