dreamRs / dreamRs/datamods

Updating filters in `filter_data_ui()` as in `select_group_ui()`

Open
#86 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
R
Stars
155
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Hello,

I am developing a Shiny app that includes several mutually dependent (i.e. bidirectional) filters of several data types (e.g. character, numeric, date). I would like the values of each filter to update on the fly based on the selections in other filters, as is possible with the example featured in [`select_group_ui()`](https://dreamrs.github.io/datamods/reference/select-group.html), where selecting `Manufactuer == "Acura"` will update the `Type` filter and only `Midsize` and `Small` will be selectable.

However, this functionality doesn't seem to be the default in [`filter_data_ui()`](https://dreamrs.github.io/datamods/reference/filter-data.html). Running the example from the documentation, the filters don't seem to update based on user inputs to other flters (e.g. selecting `species == "virginica"` does not update the numeric inputs to reflect the ranges actually observed for that species).

Is it possible to achieve this auto-updating-filter functionality with [`filter_data_ui()`](https://dreamrs.github.io/datamods/reference/filter-data.html)?

Many thanks,

Josh

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the documented filter_data_ui() example with the select_group_ui() example, focusing on how selections affect the other controls. Reproduce the species == "virginica" case and inspect whether filter_data_ui() exposes the needed update behavior for character, numeric, and date filters. Done means dependent filters update their available values or ranges consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.