insightsengineering / insightsengineering/teal.transform

data_extract_spec objects should have an optional submit button to prevent needless re-render

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
core discussion
Dominant language
R
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

proposal:

```r
data_extract_spec(
dataname,
select = NULL,
filter = NULL,
reshape = FALSE,
sub_btn = FALSE,
)
```

When `sub_btn = TRUE`, then the output will listen to the `actionButton` rather than the changes to any of the `selectInputs`.

![image](https://user-images.githubusercontent.com/12943682/128364512-593ecaa8-2cbb-48d8-8efd-02541081400b.png)

For example, If user will need to select 10 different values to filter in a filter_spec, that would be 10 needless re-renders of the output. A submit button will solve this.

Provenance:
```
Creator: junlue
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.