To provide some minimal backwards compatibility with v1.x
To provide some minimal backwards compatibility with v1.x
(table tabular-data
&
{:keys [headers header-style data-style]
:or {data-style (constantly {})}})
Build a sheet grid from the provided collection of tabular data, where each item has the format {Column Name, Cell Value}. If provided headers is an ordered coll of column names header-style is a function header-name => style map for the header. data-style is a function that takes (datum-map, column name) and returns a style specification or nil for the default style.
Build a sheet grid from the provided collection of tabular data, where each item has the format {Column Name, Cell Value}. If provided headers is an ordered coll of column names header-style is a function header-name => style map for the header. data-style is a function that takes (datum-map, column name) and returns a style specification or nil for the default style.
(tree core-table
with-title
t
&
{:keys [headers formatters total-formatters min-leaf-depth data-format]
:or {formatters default-tree-formatters
total-formatters default-tree-total-formatters
min-leaf-depth 2
data-format :accounting}})
Build a sheet grid from the provided tree of data [Tree Title [[Category Label [Children]] ... [Category Label [Children]]]] with leaves of the shape [Category Label {:column :value}]. E.g. The assets section of a balance sheet might be represented by the tree [:balance-sheet [:assets [[:current-assets [[:cash {2018 100M, 2017 90M}] [:inventory {2018 1500M, 2017 1200M}]]] [:investments {2018 50M, 2017 45M}]]]] If provided, the formatters argument is a function that takes the integer depth of a category (increases with nesting) and returns a cell format for the row, and total-formatters is the same for rows that are totals.
Build a sheet grid from the provided tree of data [Tree Title [[Category Label [Children]] ... [Category Label [Children]]]] with leaves of the shape [Category Label {:column :value}]. E.g. The assets section of a balance sheet might be represented by the tree [:balance-sheet [:assets [[:current-assets [[:cash {2018 100M, 2017 90M}] [:inventory {2018 1500M, 2017 1200M}]]] [:investments {2018 50M, 2017 45M}]]]] If provided, the formatters argument is a function that takes the integer depth of a category (increases with nesting) and returns a cell format for the row, and total-formatters is the same for rows that are totals.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close