updateNumericFilter: Change a numeric legend filter in the client

Description Usage Arguments Details See Also

View source: R/update-input.R

Description

This function does not validate if a brush is already defined; updating only one of start or end with an empty brush will assign the other to NaN.

Usage

1
2
3
4
5
6
7
8
9
updateNumericFilter(
  session,
  inputId,
  label = NULL,
  start = NULL,
  end = NULL,
  minValue = NULL,
  maxValue = NULL
)

Arguments

session

The session object passed to function given to shinyServer.

inputId

The id of the input object.

label

The label to set for the input object.

start

Beginning of selection interval.

end

End of selection interval.

minValue

Minimum numeric value in the legend (can be higher the maximum for inverted scale).

maxValue

Maximum numeric value in the legend (can be lower the minimum for inverted scale).

Details

This function only affects the label and JavaScript-implemented axis and brush values and selection. Re-creating the color strips and changing the ticks and format of values requires deleting and re-creating the legend using shinyjs, for example.

See Also

continuousColorFilter() discreteColorFilter()

Other update functions: updateCategoricalFilter()


rhenkin/vfinputs documentation built on Oct. 23, 2020, 1:30 a.m.