on master help sign in
Mess with documentation for `empty`
commit4e23dc6a08af3eb300b2b8fab855f9c4a2cc75e8 authorEvan Czaplicki <info@elm-lang.org> dateTue 24 Dec 2013, 10:16 (13 years ago) parent6db9318
1 file changed+6−3
libraries/Graphics/Element.elm+6−3
libraries/Graphics/Element.elm+6−3
@@ -13,7 +13,7 @@ combine and position.
1313@docs widthOf, heightOf, sizeOf
1414
1515# Layout
16−@docs flow, up, down, left, right, inward, outward, empty
16+@docs flow, up, down, left, right, inward, outward
1717
1818## Layout Aliases
1919There are also some convenience functions for working
@@ -22,7 +22,7 @@ with `flow` in specific cases:
2222@docs layers, above, below, beside
2323
2424# Positioning
25−@docs spacer, container
25+@docs empty, spacer, container
2626
2727## Specific Positions
2828
@@ -58,7 +58,10 @@ type Properties = {
5858
5959type Element = { props : Properties, element : ElementPrim }
6060
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+-}
6265empty : Element
6366empty = spacer 0 0
6467