add

fun add(child: Component, columnStart: Int? = null, rowStart: Int? = null, columnEnd: String? = null, rowEnd: String? = null, area: String? = null, justifySelf: JustifyItems? = null, alignSelf: AlignItems? = null, className: String? = null)

Adds a component to the grid container.

Parameters

child

child component

columnStart

number of starting column

rowStart

number of starting row

columnEnd

number of ending column

rowEnd

number of ending row

area

grid area

justifySelf

child self justification

alignSelf

child self alignment

className

CSS class names


fun add(position: Int, child: Component, columnStart: Int? = null, rowStart: Int? = null, columnEnd: String? = null, rowEnd: String? = null, area: String? = null, justifySelf: JustifyItems? = null, alignSelf: AlignItems? = null, className: String? = null)

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

Parameters

position

the position of the child component

child

child component

columnStart

number of starting column

rowStart

number of starting row

columnEnd

number of ending column

rowEnd

number of ending row

area

grid area

justifySelf

child self justification

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