← all modules

Std.Webview

Std.Webview
  Std.Webview — desktop UI backend (Layer 3 Sky source).

Types
  type alias WindowCfg = { title : String , size : ( Int, Int ) }
  type alias AppCfg model msg = { init : () -> ( model, Cmd msg ) , update : msg -> model -> ( model, Cmd msg ) , view : model -> Html msg , subscriptions : model -> Sub msg , window : WindowCfg }

Values
  app : AppCfg model msg -> Task Error ()
      Open a native desktop window and run the TEA loop until the
  defaultWindow : WindowCfg
      `defaultWindow` — 800×600 window titled "Sky".  Builders below
  url : String -> WindowCfg -> Task Error ()
      Open a native desktop window that LOADS AN EXISTING WEB APP at `url`,
  withSize : Int -> Int -> WindowCfg -> WindowCfg
      `withSize w h cfg` — replace the initial window size in pixels.
  withTitle : String -> WindowCfg -> WindowCfg
      `withTitle "My App" cfg` — replace the window title.