Module
Flame.Subscription
- Package
- purescript-flame
- Repository
- easafe/purescript-flame
Defines helpers for events from outside the view (e.g., custom/window or document events)
For view events, see Flame.Html.Attribute
#onCustomEvent Source
onCustomEvent :: forall arg message. UnserializeState arg => EventType -> (arg -> message) -> Subscription message
Subscribe to a CustomEvent
arg
must be serializable since it might come from external JavaScript
#onCustomEvent' Source
onCustomEvent' :: forall message. EventType -> message -> Subscription message
Subscribe to a CustomEvent
that has no data associated
- Modules
- Flame
- Flame.
Application. EffectList - Flame.
Application. Effectful - Flame.
Application. Internal. Dom - Flame.
Application. Internal. PreMount - Flame.
Application. NoEffects - Flame.
Html. Attribute - Flame.
Html. Attribute. Internal - Flame.
Html. Element - Flame.
Html. Event - Flame.
Internal. Equality - Flame.
Internal. Fragment - Flame.
Renderer. Internal. Dom - Flame.
Renderer. String - Flame.
Serialization - Flame.
Subscription - Flame.
Subscription. Document - Flame.
Subscription. Internal. Create - Flame.
Subscription. Internal. Listener - Flame.
Subscription. Unsafe. CustomEvent - Flame.
Subscription. Window - Flame.
Types