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
align Self
child self alignment
class Name
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
align Self
child self alignment
class Name
CSS class names
Adds given component to the current container.
Parameters
child
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