Skip to contents

A shiny module that allows the user to edit a single numeric filter. The filter consists of a slider range input and two numeric inputs, where the numeric inputs are linked to the values of the slider input.

Usage

filter_ui(id, n, name, column)

filter_server(id)

Arguments

id

The namespace of the module.

n

The filter number - unique for each filter.

name

The column name that is being filtered.

column

The column that is being filtered.

Value

The server returns a tibble::tibble_row() containing the min and max of the filter.

Details

The link between the numeric and slider inputs means that when the numeric inputs are updated, the slider inputs will update, and vice versa.

Note that the filter number (n) may not reflect the actual position of the filter within the app. As an example, consider three filters (n is 1, 2 and 3 respectively). If the second filter is deleted, since the UI is not changed, the filter which will now be second will have a filter number of 3.

See also