Mess with documentation for empty
This commit is contained in:
parent
6db931849d
commit
4e23dc6a08
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue