radiant-rstats / radiant

Business analytics using R and Shiny. The radiant app combines the menus from radiant.data, radiant.design, radiant.basics, radiant.model, and radiant.multivariate.
https://radiant-rstats.github.io/docs/
Other
459 stars 136 forks source link

Question: Filter slider on radiant > View #181

Closed yogat3ch closed 2 years ago

yogat3ch commented 2 years ago

Greetings @vnijs, We're in awe of the functionality packed into radiant and have been wondering where some of it came from. This is the first time I've seen the pop-up sliders on continuous data filter fields, seen in the screenshot below on the Radiant > View tab:

image

I haven't been able to find this functionality documented in the datatable manual. Is this some obscure feature? A table plug-in? Or is this something you added with custom javascript?

Thanks for your time, Stephen

vnijs commented 2 years ago

Thanks for the kind comment @yogat3ch. Everything in the Data > View tab in Radiant comes from the DT package.

https://rstudio.github.io/DT/

The view_data function linked below show the setup you could use outside of Radiant.

https://github.com/radiant-rstats/radiant.data/blob/master/R/view.R#L192-L254

yogat3ch commented 2 years ago

Most awesome, thank you @vnijs! I don't know how I've been using DT for so long and never observed this functionality! Much appreciated