application

inline fun <T : Application> application(allowDefaultDarkMode: Boolean = false, modules: List<DI.Module> = emptyList(), noinline creator: NoArgBindingDI<*>.() -> T): Application(source)

Launches a top-level application (full-screen) with the given modules. The set of modules configure which types are available for injection to the app. Modules also control some features like Pointer and Keyboard support.

Parameters

allowDefaultDarkMode

controls whether the Browser tries to provide dark vs light styles

modules

to use for the application

creator

block that constructs the application

inline fun <T : Application> application(root: HTMLElement, allowDefaultDarkMode: Boolean = false, modules: List<DI.Module> = emptyList(), noinline creator: NoArgBindingDI<*>.() -> T): Application(source)

Launches an application nested within root with the given modules. The set of modules configure which types are available for injection to the app. Modules also control some features like Pointer and Keyboard support.

Parameters

root

element where the application will be hosted

allowDefaultDarkMode

controls whether the Browser tries to provide dark vs light styles

modules

to use for the application

creator

block that constructs the application

inline fun <T : Application> application(root: HTMLElement, allowDefaultDarkMode: Boolean = false, modules: List<DI.Module> = emptyList(), noinline creator: NoArgBindingDI<*>.() -> T): Application(source)

Launches an application nested within root with the given modules. The set of modules configure which types are available for injection to the app. Modules also control some features like Pointer and Keyboard support.

Parameters

root

element where the application will be hosted

allowDefaultDarkMode

controls whether the Browser tries to provide dark vs light styles

modules

to use for the application

creator

block that constructs the application