kvision / pl.treksoft.kvision.panel / Root / <init>

<init>

(js) Root(id: String, containerType: ContainerType = ContainerType.FLUID, addRow: Boolean = containerType != ContainerType.FIXED, init: (Root.() -> Unit)? = null)

Parameters

id - ID attribute of element in the main HTML file

containerType - Bootstrap container type

addRow - if true, a element is rendered inside the root container (default is based on container type)

init - an initializer extension function

Constructor

(js) Root(element: HTMLElement, containerType: ContainerType = ContainerType.FLUID, addRow: Boolean = containerType != ContainerType.FIXED, init: (Root.() -> Unit)? = null)

Parameters

element - HTML element in the DOM tree

containerType - Bootstrap container type

addRow - if true, a element is rendered inside the root container (default is based on container type)

init - an initializer extension function

Constructor

(js) Root(id: String, fixed: Boolean = false, containerType: ContainerType = if (fixed) ContainerType.FIXED else ContainerType.FLUID, addRow: Boolean = !fixed, init: (Root.() -> Unit)? = null)

Parameters

id - ID attribute of element in the main HTML file

fixed - if false, the container is rendered with Bootstrap "container-fluid" class, otherwise it's rendered with "container" class (default is false)

containerType - Bootstrap container type

addRow - if true, a element is rendered inside the root container

init - an initializer extension function

Constructor

(js) Root(element: HTMLElement, fixed: Boolean = false, containerType: ContainerType = if (fixed) ContainerType.FIXED else ContainerType.FLUID, addRow: Boolean = !fixed, init: (Root.() -> Unit)? = null)

Parameters

element - HTML element in the DOM tree

fixed - if false, the container is rendered with Bootstrap "container-fluid" class, otherwise it's rendered with "container" class (default is false)

containerType - Bootstrap container type

addRow - if true, a element is rendered inside the root container

init - an initializer extension function

Constructor