React SDK

useRangeFilter

useRangeFilter returns the filter range (current range and the range for min and max).

Usage

Editable Example
Suggestions
    Powered by

    Loading...

    Aggregate

    Editable Example
    Suggestions
      Powered by

      Loading...

      Anatomy

      useRangeFilter returns an object containing the following properties:

      NameTypeDefaultDescription
      rangeRange or nullThe current range.
      setRange(value:Range OR null) => voidMethod to set the range.
      minnumberThe min range.
      maxnumberThe max range.
      showResetbooleanThe state for deciding to call reset function.
      reset() => voidReset the current state to the initial state

      Parameters

      NameTypeDefaultDescription
      namestringThe name of the filter that you specified in RangeFilterBuilder.