Functions for manipulating the re-frame database
Functions for manipulating the re-frame database
(configuration db id)
Gets the configuration of the given table
Gets the configuration of the given table
(per-page db id)
Gets the correct per-page
value for pagination, by retrieving it from state
or options, or falling back to the default.
Gets the correct `per-page` value for pagination, by retrieving it from state or options, or falling back to the default.
(selection db id)
Retrieves selected indices
Retrieves selected indices
(set-pagination db id s)
Sets current pagination configuration in state
Sets current pagination configuration in state
(set-selection db id idxes)
Sets selected indices in db
Sets selected indices in db
(set-sorting db id s)
Sets current sorting configuration in state
Sets current sorting configuration in state
(state db id)
Gets the state of the given table
Gets the state of the given table
(update-state db id f & args)
Applies f
with arguments to the state for given table
Applies `f` with arguments to the state for given table
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close