Context

korolev.Context
See theContext companion object
final class Context[F[_], S, M] extends Scope[F, S, S, M]

Provides DSLs and effects for application or component

Attributes

Since:

0.6.0

Companion:
object
Graph
Supertypes
class Scope[F, S, S, M]
class Object
trait Matchable
class Any

Members list

Concise view

Type members

Inherited classlikes

final implicit class ComponentDsl[CS, P, E](component: Component[F, CS, P, E])(implicit evidence$9: StateSerializer[CS], evidence$10: StateDeserializer[CS], _e: Effect[F], _css: StateSerializer[S], _csd: StateDeserializer[S])

Attributes

Inherited from:
Scope
Graph
Supertypes
class Object
trait Matchable
class Any
implicit class JsCodeHelper(sc: StringContext)

Attributes

Inherited from:
Scope
Graph
Supertypes
class Object
trait Matchable
class Any

Types

type AccessType = S

Inherited types

type Access = Access[F, AccessType, M]

Attributes

Inherited from:
Scope
type Attr = Attr[Binding]

Attributes

Inherited from:
Scope
type Binding = Binding[F, S, M]

Attributes

Inherited from:
Scope
type Document = Document[Binding]

Attributes

Inherited from:
Scope

Attributes

Inherited from:
Scope
type Event = Event[F, S, M]

Attributes

Inherited from:
Scope
type EventFactory[T] = T => Event

Attributes

Inherited from:
Scope
type EventResult = F[Unit]

Attributes

Inherited from:
Scope
type Node = Node[Binding]

Attributes

Inherited from:
Scope
type Render = PartialFunction[S, Node[Binding]]

Attributes

Inherited from:
Scope
type Transition = () => S

Attributes

Inherited from:
Scope
type UnscopedAccess = Access[F, S, M]

Attributes

Inherited from:
Scope

Value members

Inherited methods

def elementId(name: Option[String]): ElementId

Attributes

Inherited from:
Scope
def event(name: String, stopPropagation: Boolean, phase: EventPhase)(effect: Access => F[Unit]): Event

Attributes

Inherited from:
Scope
def eventUnscoped(name: String, stopPropagation: Boolean, phase: EventPhase)(effect: UnscopedAccess => F[Unit]): Event

Attributes

Inherited from:
Scope
def scope[S2](read: PartialFunction[S, S2], write: PartialFunction[(S, S2), S]): Scope[F, S, S2, M]

Attributes

Inherited from:
Scope
def scope[S2](lens: Lens[S, S2]): Scope[F, S, S2, M]

Attributes

Inherited from:
Scope

Deprecated and Inherited methods

def delay(duration: FiniteDuration)(effect: Access => F[Unit]): Delay[F, S, M]

Schedules the transition with delay. For example it can be useful when you want to hide something after timeout.

Schedules the transition with delay. For example it can be useful when you want to hide something after timeout.

Attributes

Deprecated
true
Inherited from:
Scope

Inherited fields

val emptyTransition: PartialFunction[S, S]

Attributes

Inherited from:
Scope

Implicits

Inherited implicits

final implicit def ComponentDsl[CS : StateDeserializer, P, E](component: Component[F, CS, P, E])(implicit evidence$9: StateSerializer[CS], evidence$10: StateDeserializer[CS], _e: Effect[F], _css: StateSerializer[S], _csd: StateDeserializer[S]): ComponentDsl[CS, P, E]

Attributes

Inherited from:
Scope
final implicit def JsCodeHelper(sc: StringContext): JsCodeHelper

Attributes

Inherited from:
Scope