kvision / pl.treksoft.kvision.panel / root

root

fun Application.root(id: String, fixed: Boolean = false, init: Root.() -> Unit): Root

Create new Root container based on ID

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)

init - an initializer extension function

Return
the created Root container

fun Application.root(element: <ERROR CLASS>, fixed: Boolean = false, init: Root.() -> Unit): Root

Create new Root container based on HTML element

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)

init - an initializer extension function

Return
the created Root container