(atom? a)
ducktype an atom as something dereferable
ducktype an atom as something dereferable
Possible values of col-maps within :cols
of control-map
Possible values of col-maps within `:cols` of control-map
The possible values of a control-map for a table, which should be a sequence of maps where each map corresponds to one column of the table.
The possible values of a control-map for a table, which should be a sequence of maps where each map corresponds to one column of the table.
(default-paging)
Set up a local atom and define paging functions with reference to it
Set up a local atom and define paging functions with reference to it
(filter-by-map filter-map map-coll)
Filter a collection of maps by a filter-map, where the filter map specifies the columns and the value to filter them by.
Strings will be made into basic regexp.
Filter a collection of maps by a filter-map, where the filter map specifies the columns and the value to filter them by. Strings will be made into basic regexp.
(gen-filter col-map)
Generate an input meant to filter a column
Generate an input meant to filter a column
(gen-sort c headline)
Render the title as a link that toggles sorting on this column
Render the title as a link that toggles sorting on this column
(generate-filter-fn filter-map)
Produce the function which compares a filter-map to a map and deems it good or not. If a :key in filter-map
doesn't exist when filtering filterable-map
, the filterable map will fail this function.
Produce the function which compares a filter-map to a map and deems it good or not. If a :key in `filter-map` doesn't exist when filtering `filterable-map`, the filterable map will fail this function.
(generate-rows controls entries)
Generate all the rows of the table from entries
, according to controls
Generate all the rows of the table from `entries`, according to `controls`
(generate-theads controls paging-controls)
generate the table headers
generate the table headers
(sort-click valfn)
Select sort field; if sort field unchanged, sort direction
Select sort field; if sort field unchanged, sort direction
(table controls entries)
Generate a table from entries
according to headers and getter-fns in controls
Generate a table from `entries` according to headers and getter-fns in `controls`
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close