Component

korolev.Component
See theComponent companion object
abstract class Component[F[_], S, P, E](val initialState: S, val id: String)

Component definition. Every Korolev application is a component. Extent it to declare component in object oriented style.

Attributes

E

Type of events produced by component

F

Control monad

S

State of the component

id

Unique identifier of the component. Use it when you create component declaration dynamically

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def render(parameters: P, state: S): Node

Component render

Component render

Attributes

Concrete fields

val context: Context[F, S, E]

Component context.

Component context.

import context._

Attributes

val id: String