Skip to content

Possible Enhancement: Adding a button to reset filters to original status in filter_data.R #115

@RoryChenXY

Description

@RoryChenXY

Hi,

The package is great.

Referring to the example, I have added a button to reset the filters to their original status.
https://dreamrs.github.io/datamods/reference/filter-data.html

originalFilterValues <- shiny::reactiveVal()

observeEvent(input$resetfilter,{
  originalFilterValues <<- res_filter$values()
}, ignoreInit = F)

defaults <- reactive({
  input$resetfilter
  originalFilterValues
})

Can you please suggest a way to have the Reset Filter Button and (saveFilterButton + loadFilterButton) in your example?

Thanks,
Rory

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions