add

fun add(child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: <Error class: unknown class><Number, UNIT>? = null, alignSelf: AlignItems? = null, className: String? = null)

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

className

CSS class names


fun add(position: Int, child: Component, order: Int? = null, grow: Int? = null, shrink: Int? = null, basis: <Error class: unknown class><Number, UNIT>? = null, alignSelf: AlignItems? = null, className: String? = null)

Adds a component to the flexbox container at the given position.

Parameters

position

the position of the child component

child

child component

order

child flexbox ordering

grow

child flexbox grow

shrink

child flexbox shrink

basis

child flexbox basis

alignSelf

child self alignment

className

CSS class names


open override fun add(child: Component)

Adds given component to the current container.

Parameters

child

child component


open override fun add(position: Int, child: Component)

Adds given component to the current container at the given position.

Parameters

position

the position to insert child component

child

the child component