Skip to content

GemDualRangeInput

This component displays a label with two slider thumbs that allows users to select a range within a specified slider track. This component can be used in forms and other interactive interfaces to allow users to select a range of values easily

GUI Model

component GemDualRangeInput(
  String id,
  String labelText,
  Boolean vertical,
  Integer step,
  Integer minValue,
  Integer maxValue,
  ?Integer startValue,
  ?Integer endValue,
  List<Marker> ticks,
  Boolean snapping = false,
  String size
)
Name Type Description Default value
id String The component's id; used to configure the styles
labelText String Label of the range input
vertical Boolean This boolean input allows you to specify whether the slider should be displayed vertically or horizontally, with the default appearance being horizontal. It is advisable to omit this input entirely rather than setting it to false when you desire a horizontal appearance.
step Integer Allows to specify a fixed increment for selecting values in the range slider.
minValue Integer The slider's minimum value.
maxValue Integer The slider's maximum value.
startValue ?Integer The slider’s lower bound (start handle). It is recommended that you bind this to a number variable so that your application can react to the selected start value.
endValue ?Integer The slider’s upper bound (end handle). It is recommended that you bind this to a number variable so that your application can react to the selected end value.
ticks List<Marker> Optional tick marks shown along the slider. Each Marker provides a numeric value and an optional label.
snapping Boolean Enable snapping to the nearest tick marker. When true, the slider snaps to the closest ticks.value; minValue and maxValue are also considered snap targets. false
size String Width of the slider track as a valid CSS length (e.g., "320px", "100%", "20rem").

Types

GemRangeInputTypes

package mc.fenix.input;

classdiagram GemRangeInputTypes {
  public class Marker {
    Integer value;
    String label;
    +Marker(Integer value);
    +Marker(Integer value, String label);
  }
}

Marker

Name Type Description Default value
value Integer Numeric value of the tick on the slider.
label String Optional text label shown near the tick mark. If null or empty, no label will be rendered.