Configuration about row alignment.
Default Row configuration.
{ vertical = Top
, horizontal = Left
, wrap = False
, nodeName = "div"
}Optimized row.
First argument: identifier for each element
Second argument: apply lazyN on the resulting function of toProtected.
v1 : View p msg
v1 =
Debug.todo "v1"
v2 : View p msg
v2 =
Debug.todo "v2"
child : Int -> View p msg
child _ =
Debug.todo "child"
-- Make sure to declare this top level in order to `lazy` works well.
child_ : Int -> Vertical -> Html (Protected p msg)
child_ n =
toProtected <| child n
v : List Int -> View p msg
v =
optimized
String.fromInt
(\n -> lazy2 child_ n)
defaultRowThis is supposed to be used in order to make Html.lazy.lazyN work.
See optimized for real usage.