Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module provides functions for vertical alginment of columns.
Vertical padding of columns
vPad :: a -> [Position V] -> [Col a] -> [Col a] Source
Fill all columns to the same length by aligning at the given positions.
vPadAll :: a -> Position V -> [Col a] -> [Col a] Source
Fill all columns to the same length by aligning at the given position.
Converting columns to rows with positioning
colsAsRowsAll :: Position V -> [Col [a]] -> [Row [a]] Source
Merges multiple columns together and merges them to a valid grid without holes. The following example clarifies this:
>>>
colsAsRowsAll top [justifyText 10 "This text will not fit on one line.", ["42", "23"]]
[["This text","42"],["will not","23"],["fit on one",""],["line.",""]]
The result is intended to be used with layoutToCells
or with
rowsG
.