Liking cljdoc? Tell your friends :D

clj-string-layout.table

High-level table API built on top of the layout DSL.

Use this namespace when you want named output formats, headers, map rows, and column specs without writing layout strings directly. Drop down to clj-string-layout.core/layout when you need full DSL control.

High-level table API built on top of the layout DSL.

Use this namespace when you want named output formats, headers, map rows, and
column specs without writing layout strings directly. Drop down to
clj-string-layout.core/layout when you need full DSL control.
raw docstring

format-infoclj

(format-info format)

Returns registry information for a named table format.

The returned map is descriptive and may contain implementation details such as :layout. It is useful for discovery, but callers should prefer table APIs over relying on this map's exact shape.

Returns registry information for a named table format.

The returned map is descriptive and may contain implementation details such as
:layout. It is useful for discovery, but callers should prefer table APIs over
relying on this map's exact shape.
sourceraw docstring

formatsclj

(formats)

Returns the set of named formats accepted by table, table-str, and table-seq.

Returns the set of named formats accepted by table, table-str, and table-seq.
sourceraw docstring

tableclj

(table spec)

Renders a high-level table spec to a vector of output lines.

Required input is usually :rows, with optional :headers, :columns, and :format. Supported formats are returned by formats. Column specs may contain :key, :title, :align, :format, :width, and :overflow. Overflow policies are :none, :clip, :ellipsis, :wrap, and :error.

Renders a high-level table spec to a vector of output lines.

Required input is usually :rows, with optional :headers, :columns, and
:format. Supported formats are returned by formats. Column specs may contain
:key, :title, :align, :format, :width, and :overflow. Overflow policies are
:none, :clip, :ellipsis, :wrap, and :error.
sourceraw docstring

table-seqclj

(table-seq spec)

Renders a high-level table spec as a sequence of output lines.

This currently applies the high-level table normalization before returning the sequence. Use clj-string-layout.core/layout-seq directly when you need fully streaming behavior with already-normalized rows and explicit column widths.

Renders a high-level table spec as a sequence of output lines.

This currently applies the high-level table normalization before returning the
sequence. Use clj-string-layout.core/layout-seq directly when you need fully
streaming behavior with already-normalized rows and explicit column widths.
sourceraw docstring

table-strclj

(table-str spec)

Renders a high-level table spec and joins the resulting lines with newlines.

Renders a high-level table spec and joins the resulting lines with newlines.
sourceraw docstring

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