(=== x-padding & grids)Horizontally aligns given grids with some defaults.
Just a convenience wrapper for halign to accept grids as args and use some default values for padding and centering.
Horizontally aligns given grids with some defaults. Just a convenience wrapper for halign to accept grids as args and use some default values for padding and centering.
(halign grids)(halign grids x-padding y-padding)(halign grids x-padding y-padding center?)Constructs a grid containing given grids aligned horizontally.
For example, (halign [(text "A") (text "B") (text "C")]) is ABC.
Constructs a grid containing given grids aligned horizontally. For example, (halign [(text "A") (text "B") (text "C")]) is ABC.
(hspacer n)Constructs a horizontal space of given length.
For example, (hspacer 5) is " ".
Constructs a horizontal space of given length. For example, (hspacer 5) is " ".
(spacer width height)Constructs a rectangular space of given width and height.
Constructs a rectangular space of given width and height.
(valign grids)(valign grids x-padding y-padding)(valign grids x-padding y-padding center?)Constructs a grid containing given grids aligned vertically.
For example, (valign [(text "A") (text "B") (text "C")]) is A B C
Constructs a grid containing given grids aligned vertically. For example, (valign [(text "A") (text "B") (text "C")]) is A B C
(vspacer n)Constructs a vertical space of given length.
For example, (vspacer 5) is (space) (space) (space) (space) (space)
Constructs a vertical space of given length. For example, (vspacer 5) is (space) (space) (space) (space) (space)
(|| y-padding & grids)Vertically aligns given grids with some defaults.
Just a convenience wrapper for valign to accept grids as args and use some default values for padding and centering.
Vertically aligns given grids with some defaults. Just a convenience wrapper for valign to accept grids as args and use some default values for padding and centering.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |