Module
PsSpa.Page
- Package
- purescript-ps-spa
- Repository
- the-man-with-a-golden-mind/ps-spa
#AdvancedConfig Source
type AdvancedConfig :: Type -> Type -> Type -> Type -> Type -> (Type -> Type) -> Typetype AdvancedConfig model msg shared route command subscription = { init :: Step model (Effect command shared route), subscriptions :: model -> Array (subscription msg), update :: msg -> model -> Step model (Effect command shared route), view :: model -> Document msg }
#Page Source
data Page :: Type -> Type -> Type -> Type -> Type -> (Type -> Type) -> Typedata Page model msg shared route command subscription
Constructors
StaticPage (StaticConfig msg)SandboxPage (SandboxConfig model msg)ElementPage (ElementConfig model msg command subscription)AdvancedPage (AdvancedConfig model msg shared route command subscription)
#SandboxConfig Source
type SandboxConfig model msg = { init :: model, update :: msg -> model -> model, view :: model -> Document msg }#StaticConfig Source
type StaticConfig msg = { view :: Document msg }#advanced Source
advanced :: forall model msg shared route command subscription. AdvancedConfig model msg shared route command subscription -> Page model msg shared route command subscription#element Source
element :: forall model msg shared route command subscription. ElementConfig model msg command subscription -> Page model msg shared route command subscription#sandbox Source
sandbox :: forall model msg shared route command subscription. SandboxConfig model msg -> Page model msg shared route command subscription#static Source
static :: forall model msg shared route command subscription. StaticConfig msg -> Page model msg shared route command subscription