One can imagine behaviour of this module in the following way:
A tree of height
m is created.
We begin at the top of the tree with the entire
A category (column) from a
data.table is chosen via
Each value of this fixed category determines a subtable of the
For each value choice a child node is created and receives the value choice.
Therefore, every child node implicitly receives a subtable corresponding to the
received value choice.
Child node also receives an information from user which category should be fixed next.
It then performs the same calculations as the top node, but based on the implicitly
Simultaneously, for each node desired UI (e.g., tabs) is created.
If no information about next category to fix is provided for a node, it assumes it is a leaf.
At the end, at each leaf, a summary function is applied.
Note that each leaf (and each node) receives the entire
the information about chosen values leading to this leaf (node).
Hence, summary can be based on implicitly determined subtable, but also based
data.table or some subtable determined by a subset of chosen values.
slicerUI(id) slicer(input, output, session, datatable, uiSequence, serverFunction, uiFunction, ...)
An id string that corresponds with the id used to call the module's UI function.
shiny server input object
shiny server output object
shiny server session object
A summary module server function.
This function should take, at minimum, the following arguments:
A summary module function UI taking one argument:
Additional arguments passed to
Shiny module UI.
Shiny module server function.