Context

final class Context[F[_], S, M] extends Scope[F, S, S, M]

Provides DSLs and effects for application or component

Since:

0.6.0

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

Type members

Inherited classlikes

final implicit implicit class ComponentDsl[CS, P, E](component: Component[F, CS, P, E])(implicit evidence$8: StateSerializer[CS], evidence$9: StateDeserializer[CS], _e: Effect[F], _css: StateSerializer[S], _csd: StateDeserializer[S])
Inherited from:
Scope
implicit implicit class JsCodeHelper(sc: StringContext)
Inherited from:
Scope

Types

type AccessType = S

Inherited types

type Access = Access[F, AccessType, M]
Inherited from:
Scope
type Attr = Attr[Binding]
Inherited from:
Scope
type Binding = Binding[F, S, M]
Inherited from:
Scope
type Document = Document[Binding]
Inherited from:
Scope
Inherited from:
Scope
type Event = Event[F, S, M]
Inherited from:
Scope
type EventFactory[T] = T => Event
Inherited from:
Scope
type EventResult = F[Unit]
Inherited from:
Scope
type Node = Node[Binding]
Inherited from:
Scope
type Render = PartialFunction[S, Node[Binding]]
Inherited from:
Scope
type Transition = () => S
Inherited from:
Scope
type UnscopedAccess = Access[F, S, M]
Inherited from:
Scope

Value members

Inherited methods

def elementId(name: Option[String]): ElementId
Inherited from:
Scope
def event(name: String, stopPropagation: Boolean, phase: EventPhase)(effect: Access => F[Unit]): Event
Inherited from:
Scope
def eventUnscoped(name: String, stopPropagation: Boolean, phase: EventPhase)(effect: UnscopedAccess => F[Unit]): Event
Inherited from:
Scope
def scope[S2](read: PartialFunction[S, S2], write: PartialFunction[(S, S2), S]): Scope[F, S, S2, M]
Inherited from:
Scope
def scope[S2](lens: Lens[S, S2]): Scope[F, S, S2, M]
Inherited from:
Scope

Deprecated and Inherited methods

@deprecated("Delays often is using for hacks", "0.18.0")
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.

Deprecated
Inherited from:
Scope

Inherited fields

val emptyTransition: PartialFunction[S, S]
Inherited from:
Scope

Implicits

Inherited implicits

final implicit def ComponentDsl[CS : StateSerializer, P, E](component: Component[F, CS, P, E])(implicit evidence$8: StateSerializer[CS], evidence$9: StateDeserializer[CS], _e: Effect[F], _css: StateSerializer[S], _csd: StateDeserializer[S]): ComponentDsl[CS, P, E]
Inherited from:
Scope
final implicit def JsCodeHelper(sc: StringContext): JsCodeHelper
Inherited from:
Scope