Mess with documentation for empty

This commit is contained in:
Evan Czaplicki 2013-12-24 10:16:17 -08:00
parent 6db931849d
commit 4e23dc6a08

View file

@ -13,7 +13,7 @@ combine and position.
@docs widthOf, heightOf, sizeOf @docs widthOf, heightOf, sizeOf
# Layout # Layout
@docs flow, up, down, left, right, inward, outward, empty @docs flow, up, down, left, right, inward, outward
## Layout Aliases ## Layout Aliases
There are also some convenience functions for working There are also some convenience functions for working
@ -22,7 +22,7 @@ with `flow` in specific cases:
@docs layers, above, below, beside @docs layers, above, below, beside
# Positioning # Positioning
@docs spacer, container @docs empty, spacer, container
## Specific Positions ## Specific Positions
@ -58,7 +58,10 @@ type Properties = {
type Element = { props : Properties, element : ElementPrim } type Element = { props : Properties, element : ElementPrim }
{-| An Element that takes up no space -} {-| An Element that takes up no space. Good for things that appear conditionally:
flow down [ img1, if showMore then img2 else empty ]
-}
empty : Element empty : Element
empty = spacer 0 0 empty = spacer 0 0