summaryrefslogtreecommitdiff
path: root/library/src/layout/table.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/src/layout/table.rs')
-rw-r--r--library/src/layout/table.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/library/src/layout/table.rs b/library/src/layout/table.rs
index 809c7ea7..6d3e7791 100644
--- a/library/src/layout/table.rs
+++ b/library/src/layout/table.rs
@@ -87,6 +87,15 @@ pub struct TableElem {
/// This can either be a single alignment or a function that returns an
/// alignment. The function is passed the cell's column and row index,
/// starting at zero. If set to `{auto}`, the outer alignment is used.
+ ///
+ /// ```example
+ /// #table(
+ /// columns: 3,
+ /// align: (x, y) => (left, center, right).at(x),
+ /// [Hello], [Hello], [Hello],
+ /// [A], [B], [C],
+ /// )
+ /// ```
pub align: Celled<Smart<Axes<Option<GenAlign>>>>,
/// How to stroke the cells.