Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- mainWidget :: (forall x. Widget x ()) -> JSM ()
- mainWidget' :: Widget () () -> JSM ()
- mainWidgetWithHead :: (forall x. Widget x ()) -> (forall x. Widget x ()) -> JSM ()
- mainWidgetWithCss :: ByteString -> (forall x. Widget x ()) -> JSM ()
- type DomTimeline = Spider
- type DomHost = SpiderHost Global
- runDomHost :: DomHost a -> IO a
- type Widget x = PostBuildT DomTimeline (ImmediateDomBuilderT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost)))
- attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a
- mainWidgetWithHead' :: (a -> Widget () b, b -> Widget () a) -> JSM ()
- replaceElementContents :: IsElement e => e -> DocumentFragment -> JSM ()
- attachWidget' :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM (a, FireCommand DomTimeline DomHost)
- type EventChannel = Chan [DSum (EventTriggerRef DomTimeline) TriggerInvocation]
- attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost)
- processAsyncEvents :: EventChannel -> FireCommand DomTimeline DomHost -> IO ()
- mainWidgetInElementById :: Text -> (forall x. Widget x ()) -> JSM ()
- newtype AppInput t = AppInput {
- _appInput_window :: Window t
- newtype AppOutput t = AppOutput {}
- runApp' :: t ~ DomTimeline => (forall x. AppInput t -> Widget x (AppOutput t)) -> JSM ()
Documentation
mainWidget :: (forall x. Widget x ()) -> JSM () Source #
mainWidget' :: Widget () () -> JSM () Source #
Warning: mainWidget'
is provided only as performance tweak. It is expected to disappear in future releases.
mainWidgetWithCss :: ByteString -> (forall x. Widget x ()) -> JSM () Source #
type DomTimeline = Spider Source #
The Reflex timeline for interacting with the DOM
type DomHost = SpiderHost Global Source #
The ReflexHost the DOM lives in
runDomHost :: DomHost a -> IO a Source #
type Widget x = PostBuildT DomTimeline (ImmediateDomBuilderT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost))) Source #
attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a Source #
mainWidgetWithHead' :: (a -> Widget () b, b -> Widget () a) -> JSM () Source #
Warning: mainWidgetWithHead'
is provided only as performance tweak. It is expected to disappear in future releases.
replaceElementContents :: IsElement e => e -> DocumentFragment -> JSM () Source #
attachWidget' :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM (a, FireCommand DomTimeline DomHost) Source #
type EventChannel = Chan [DSum (EventTriggerRef DomTimeline) TriggerInvocation] Source #
attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) Source #
processAsyncEvents :: EventChannel -> FireCommand DomTimeline DomHost -> IO () Source #
mainWidgetInElementById :: Text -> (forall x. Widget x ()) -> JSM () Source #
Run a reflex-dom application inside of an existing DOM element with the given ID