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

add

(js) 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

(js) open fun add(child: Component): FlexPanel

Adds given component to the current container.

Parameters

child - child component

Return
current container