updateNumericFilter {vfinputs}R Documentation

Change a numeric legend filter in the client

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

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()


[Package vfinputs version 0.1.0 Index]