Application

abstract class Application

Base class for KVision applications.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun dispose(): Map<String, Any>

Ending point for an application.

Link copied to clipboard
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

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

Link copied to clipboard
open fun start()

Starting point for an application.

open fun start(state: Map<String, Any>)

Starting point for an application with the state managed by Hot Module Replacement (HMR).