on master help sign in
Mess with documentation for `empty`
4e23dc6Evan Czaplicki
libraries/Graphics/Element.elm+6−3
@@ -13,7 +13,7 @@ combine and position.
13@docs widthOf, heightOf, sizeOf
13@docs widthOf, heightOf, sizeOf
14
14
15# Layout
15# Layout
16−@docs flow, up, down, left, right, inward, outward, empty
16+@docs flow, up, down, left, right, inward, outward
17
17
18## Layout Aliases
18## Layout Aliases
19There are also some convenience functions for working
19There are also some convenience functions for working
@@ -22,7 +22,7 @@ with `flow` in specific cases:
22@docs layers, above, below, beside
22@docs layers, above, below, beside
23
23
24# Positioning
24# Positioning
25−@docs spacer, container
25+@docs empty, spacer, container
26
26
27## Specific Positions
27## Specific Positions
28
28
@@ -58,7 +58,10 @@ type Properties = {
58
58
59type Element = { props : Properties, element : ElementPrim }
59type Element = { props : Properties, element : ElementPrim }
60
60
61−{-| An Element that takes up no space -}
61+{-| An Element that takes up no space. Good for things that appear conditionally:
62+
63+ flow down [ img1, if showMore then img2 else empty ]
64+-}
62empty : Element
65empty : Element
63empty = spacer 0 0
66empty = spacer 0 0
64
67