fun Application.root(id: String, fixed: Boolean = false, init: Root.() -> Unit): Root
Create new Root container based on ID
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: HTMLElement, fixed: Boolean = false, init: Root.() -> Unit): Root
Create new Root container based on HTML element
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