reflex-dom-core-0.5.3: Functional Reactive Web Apps with Reflex

Safe HaskellNone
LanguageHaskell98

Reflex.Dom.Main

Synopsis

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.

type FloatingWidget x = TriggerEventT DomTimeline (DomCoreWidget x) Source #

A widget that isn't attached to any particular part of the DOM hierarchy

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.

mainWidgetWithHead :: (forall x. Widget x ()) -> (forall x. Widget x ()) -> JSM () Source #

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

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.

mainWidgetInElementById :: Text -> (forall x. Widget x ()) -> JSM () Source #

Run a reflex-dom application inside of an existing DOM element with the given ID

newtype AppInput t Source #

Constructors

AppInput 

newtype AppOutput t Source #

runApp' :: t ~ DomTimeline => (forall x. AppInput t -> Widget x (AppOutput t)) -> JSM () Source #

attachWidget'' :: (EventChannel -> PerformEventT DomTimeline DomHost (a, IORef (Maybe (EventTrigger DomTimeline ())))) -> IO (a, FireCommand DomTimeline DomHost) Source #

Deprecated: Use 'attachImmediateWidget . const' instead