Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- mainHydrationWidgetWithHead :: (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM ()
- mainHydrationWidgetWithHead' :: HydrationWidget () () -> HydrationWidget () () -> JSM ()
- mainHydrationWidgetWithSwitchoverAction :: JSM () -> (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM ()
- mainHydrationWidgetWithSwitchoverAction' :: JSM () -> HydrationWidget () () -> HydrationWidget () () -> JSM ()
- attachHydrationWidget :: JSM () -> JSContextSingleton () -> (Event DomTimeline () -> IORef HydrationMode -> Maybe (IORef [(Node, HydrationRunnerT DomTimeline (DomCoreWidget ()) ())]) -> EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost)
- type HydrationWidget x a = HydrationDomBuilderT HydrationDomSpace DomTimeline (DomCoreWidget x) a
- type FloatingWidget x = TriggerEventT DomTimeline (DomCoreWidget x)
- type DomCoreWidget x = PostBuildT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost))
- runHydrationWidgetWithHeadAndBody :: JSM () -> ((forall c. HydrationWidget () c -> FloatingWidget () c) -> (forall c. HydrationWidget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM ()
- 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 = ImmediateDomBuilderT DomTimeline (DomCoreWidget x)
- attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a
- runImmediateWidgetWithHeadAndBody :: ((forall c. Widget () c -> FloatingWidget () c) -> (forall c. Widget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM ()
- 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]
- attachImmediateWidget :: (IORef HydrationMode -> 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 ()
- attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost)
Documentation
mainHydrationWidgetWithHead :: (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM () Source #
mainHydrationWidgetWithHead' :: HydrationWidget () () -> HydrationWidget () () -> JSM () Source #
Warning: mainHydrationWidgetWithHead'
is provided only as performance tweak. It is expected to disappear in future releases.
mainHydrationWidgetWithSwitchoverAction :: JSM () -> (forall x. HydrationWidget x ()) -> (forall x. HydrationWidget x ()) -> JSM () Source #
mainHydrationWidgetWithSwitchoverAction' :: JSM () -> HydrationWidget () () -> HydrationWidget () () -> JSM () Source #
Warning: mainHydrationWidgetWithSwitchoverAction'
is provided only as performance tweak. It is expected to disappear in future releases.
attachHydrationWidget :: JSM () -> JSContextSingleton () -> (Event DomTimeline () -> IORef HydrationMode -> Maybe (IORef [(Node, HydrationRunnerT DomTimeline (DomCoreWidget ()) ())]) -> EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) Source #
type HydrationWidget x a = HydrationDomBuilderT HydrationDomSpace DomTimeline (DomCoreWidget x) a Source #
type FloatingWidget x = TriggerEventT DomTimeline (DomCoreWidget x) Source #
A widget that isn't attached to any particular part of the DOM hierarchy
type DomCoreWidget x = PostBuildT DomTimeline (WithJSContextSingleton x (PerformEventT DomTimeline DomHost)) Source #
runHydrationWidgetWithHeadAndBody :: JSM () -> ((forall c. HydrationWidget () c -> FloatingWidget () c) -> (forall c. HydrationWidget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM () Source #
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 = ImmediateDomBuilderT DomTimeline (DomCoreWidget x) Source #
attachWidget :: IsElement e => e -> JSContextSingleton x -> Widget x a -> JSM a Source #
runImmediateWidgetWithHeadAndBody :: ((forall c. Widget () c -> FloatingWidget () c) -> (forall c. Widget () c -> FloatingWidget () c) -> FloatingWidget () ()) -> JSM () 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 #
attachImmediateWidget :: (IORef HydrationMode -> 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
attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) Source #
Deprecated: Use 'attachImmediateWidget . const' instead