kvision / pl.treksoft.kvision.panel / HPanel

HPanel

open class HPanel : FlexPanel

The container with horizontal layout.

This is a special case of the flexbox layout.

Constructors

<init>

HPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: HPanel.() -> Unit = null)

Inherited Properties

alignContent

var alignContent: FLEXALIGNCONTENT?

CSS flexbox content alignment.

alignItems

var alignItems: FLEXALIGNITEMS?

CSS flexbox items alignment.

direction

var direction: FLEXDIR?

CSS flexbox direction.

justify

var justify: FLEXJUSTIFY?

CSS flexbox content justification.

spacing

var spacing: Int?

The spacing between columns/rows.

wrap

var wrap: FLEXWRAP?

CSS flexbox wrap mode.

Inherited Functions

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.

open fun add(child: Component): FlexPanel

Adds given component to the current container.

addAll

open fun addAll(children: List<Component>): FlexPanel

Adds a list of components to the current container.

getSnStyle

open fun getSnStyle(): List<StringPair>

Returns the list of String pairs defining CSS style attributes and their values.

remove

open fun remove(child: Component): FlexPanel

Removes given component from the current container.

removeAll

open fun removeAll(): FlexPanel

Removes all children from the current container.

Companion Object Functions

hPanel

fun Container.hPanel(wrap: FLEXWRAP? = null, justify: FLEXJUSTIFY? = null, alignItems: FLEXALIGNITEMS? = null, spacing: Int? = null, classes: Set<String> = setOf(), init: HPanel.() -> Unit = null): Unit

DSL builder extension function