root

fun Application.root(id: String, containerType: ContainerType = ContainerType.NONE, addRow: Boolean = containerType != ContainerType.FIXED && containerType != ContainerType.NONE, init: Root.() -> Unit? = null): Root

Create new Root container based on ID

Return

the created Root container

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


fun Application.root(element: <Error class: unknown class>, containerType: ContainerType = ContainerType.NONE, addRow: Boolean = containerType != ContainerType.FIXED && containerType != ContainerType.NONE, init: Root.() -> Unit? = null): Root

Create new Root container based on HTML element

Return

the created Root container

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