This module has an identical API to Webbhuset.Actor
but with the view functions returning Element msg
.
Check Webbhuset.Actor for more info.
Webbhuset.PID.PID
A PID is an identifier for a Process.
fromUI : { wrapModel : compModel -> appModel, wrapMsg : msgIn -> appMsg, mapIn : appMsg -> Maybe msgIn, mapOut : PID -> msgOut -> SysMsg name appMsg } -> Webbhuset.ElmUI.Component.UI compModel msgIn msgOut -> Actor compModel appModel (SysMsg name appMsg)
Create an actor from a UI Component
fromService : { wrapModel : compModel -> appModel, wrapMsg : msgIn -> appMsg, mapIn : appMsg -> Maybe msgIn, mapOut : PID -> msgOut -> SysMsg name appMsg } -> Webbhuset.ElmUI.Component.Service compModel msgIn msgOut -> Actor compModel appModel (SysMsg name appMsg)
Create an actor from a Service Component
fromLayout : { wrapModel : compModel -> appModel, wrapMsg : msgIn -> appMsg, mapIn : appMsg -> Maybe msgIn, mapOut : PID -> msgOut -> SysMsg name appMsg } -> Webbhuset.ElmUI.Component.Layout compModel msgIn msgOut (SysMsg name appMsg) -> Actor compModel appModel (SysMsg name appMsg)
Create an actor from a Layout Component
Webbhuset.ActorSystem.Actor compModel appModel (Element msg) msg
An actor is acomponent where the types are wrapped to fit the System types.