Module
Flame.Subscription
- Package
- purescript-flame-lynx
- Repository
- easafe/purescript-flame-lynx
Defines helpers for events from outside the view (e.g., global events)
For view events, see Flame.Html.Attribute
#onCustomEvent Source
onCustomEvent :: forall message. EventType -> message -> Subscription messageSubscribe to a CustomEvent that has no data associated
#onCustomEvent' Source
onCustomEvent' :: forall arg message. UnserializeState arg => EventType -> (arg -> Effect (Maybe message)) -> Subscription messageSubscribe to a CustomEvent
arg must be serializable since it might come from external JavaScript
- Modules
- A
- Flame
- Flame.
Application - Flame.
Html. Attribute - Flame.
Html. Attribute. Internal - Flame.
Html. Element - Flame.
Html. Event - Flame.
Internal. Fragment - Flame.
Renderer. Internal. Mobile - Flame.
Renderer. String - Flame.
Serialization - Flame.
Subscription - Flame.
Subscription. Internal. GlobalEvent - Flame.
Subscription. Internal. Listener - Flame.
Subscription. Unsafe. CustomEvent - Flame.
Types