Align Views vertically.
In addition, columnWithMap can convert msg type of a View.
Configuration about column alignment.
Configuration about wrapping.
Default Column configuration.
{ vertical = Top
, horizontal = Stretch
, wrap = NoWrap
, nodeName = "div"
}An alias for columnWith defaultColumn.
Optimized column.
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 -> Column -> Renderer -> Html (Protected p msg)
child_ n =
toProtected <| child n
v : List Int -> View p msg
v =
optimized
String.fromInt
(\n -> lazy2 child_ n)
defaultColumnThis is supposed to be used in order to make Html.lazy.lazyN work.
See optimized for real usage.
Align Views vertically.
Alias for
columnWithMap.