Liking cljdoc? Tell your friends :D

com.blockether.vis.ext.channel-tui.table

Reusable fixed-width table primitives for TUI dialogs/pickers.

Reusable fixed-width table primitives for TUI dialogs/pickers.
raw docstring

border-lineclj

(border-line widths kind)
(border-line columns table-w kind)
source

boxed-border-lineclj

(boxed-border-line widths kind)

Render top/middle/bottom border for boxed-row-line.

Render top/middle/bottom border for `boxed-row-line`.
sourceraw docstring

boxed-row-lineclj

(boxed-row-line widths cells aligns)

Render fixed-width cells with outer vertical borders. Use inside dialog bodies when table should visually read as nested dialog chrome.

Render fixed-width cells with outer vertical borders. Use inside dialog
bodies when table should visually read as nested dialog chrome.
sourceraw docstring

column-widthsclj

(column-widths columns table-w)

Return concrete widths for columns inside total rendered table-w. Column spec accepts :width for fixed cells and :flex for proportional leftover. Total row width includes outer spaces and separators.

Return concrete widths for `columns` inside total rendered `table-w`.
Column spec accepts `:width` for fixed cells and `:flex` for proportional
leftover. Total row width includes outer spaces and ` │ ` separators.
sourceraw docstring

draw-line!clj

(draw-line! g x row width selected? line)
source

ellipsizeclj

(ellipsize s max-w)
source

fit-cellclj

(fit-cell value width)
(fit-cell value width align)
source

header-lineclj

(header-line columns table-w)
(header-line columns table-w opts)
source

middle-ellipsizeclj

(middle-ellipsize s max-w)

Truncate s in the middle when it exceeds max-w display columns, keeping the filename (after last /) fully visible. Falls back to right-ellipsize when there is no / or the column is too narrow.

Truncate `s` in the middle when it exceeds `max-w` display columns,
keeping the filename (after last /) fully visible. Falls back to
right-ellipsize when there is no `/` or the column is too narrow.
sourceraw docstring

row-lineclj

(row-line widths cells)
(row-line widths cells aligns)
(row-line columns row table-w opts)

Render cells to one fixed-width table row. Legacy arity accepts explicit widths; column arity accepts specs + row map. opts supports :sep.

Render `cells` to one fixed-width table row. Legacy arity accepts explicit
widths; column arity accepts specs + row map. `opts` supports `:sep`.
sourceraw docstring

row-matches?clj

(row-matches? row query)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close