Description Usage Arguments Details Value
Installs the filters and binds them to the reactable
widget and the dataframe presented in the reactable
.
define_filters()
needs to be called in the server function of any
shiny app using shinyfilter
.
1 | define_filters(input, react_id, filters, data)
|
input |
The input object provided as an argument to the server function. |
react_id |
Object ID/input slot of the |
filters |
A named character vector with the column names of the
dataframe that will be filtered. The names of the vector elements
are the object IDs/input slots of the respective |
data |
The (unfiltered) dataframe presented in the |
For a full example of a shiny app using shinyfilter
please
call up the help for update_filters()
. See the
README.md
file or the GitHub repo on
https://github.com/jsugarelli/shinyfilter
for a comprehensive shinyfilter
tutorial.
No return value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.