Skip to main content

Range Input

The Range Input component is a UI element enabling users to choose a numeric value from a defined range, or enabling developers to represent a value by a cursor positioned within a defined range.

info

The Range Input component contains embedded elements: Slider Container, Label, Filled track, Thumb, and Track. This is of great importance as configuring the Range Input component may require adjusting properties within the embedded elements. This applies to the visual style, triggers, and actions as they may differ.

Use Cases

Range Input component can be applied in various scenarios:

  • Volume Control: Use it to control audio or video volume levels.

  • Data Filtering: Implement it to allow users to filter results based on a numeric range, such as prices or quantities.

  • Configuration Settings: Utilize it for user-configurable settings that require selecting a specific numeric value within a range.

  • Visual representation: Display a value through a cursor within a range for a visual information.

Properties Customization

Range Input Component

Enhance the Range Input component to align with your application's requirements using the following customization options:

  • Label Position: Developers can tailor the label's position, placing it above, below, to the left, to the right, or even hidden.
explorer
  • Orientation: Developers can choose between horizontal and vertical orientations for the Matrix. This choice affects the arrangement of Stylebox components and the presence of scrollbars.

    • Vertical Orientation (Default): By default, the Range Input component is oriented vertically. This means that Slider container is stacked from top to bottom.

    • Horizontal Orientation: When the Range Input component is configured with a horizontal orientation, Slider container is arranged from left to right.
    explorer

Embedded Label

Within the Range Input component, an embedded Label allows for further customization of the following properties:

  • Label: Personalize the label to offer clear instructions or guidance.
explorer

Embedded Slider Container

Within the Range Input component, an embedded Slider Container allows for further customization of the following properties:

  • Min Value: Set the minimum value that users can select within the range.

  • Max Value: Define the maximum value that users can select within the range.

  • Step: Determine the increment value when users interact with the component.

  • ReadOnly: Select this option if you want to use the slider as a visual representation of a value set elsewhere in the application, and that the user cannot change by clicking on the slider.

explorer

Embedded Filled track, Thumb, and Track

A slider object consists of these three elements, that can be customized separately:

thumb

They have a default design that can be customized using standard formatting properties, such as Background color and Height/Width.

The Display property allows to control how they are drawn:

  • block: standard display, for example the thumb is a 14px white circle by default.
  • flex: provides extra formatting properties.
  • none: the element is not displayed; for example, you can hide the thumb
explorer

Data Integration

The Range Input component allows for seamless integration of datasources, enabling dynamic data binding and interaction within the webform.

info

The datasource for the Range Input component should be a numeric value.

Data Binding

To associate data with the Range Input component, follow these steps:

  1. Navigate to the Properties Panel: Access the Data Access category located within the Properties panel for the Range Input component.
  1. Define the Datasource: Specify the appropriate Datasource that contains the data you want to display within the Range Input or retrieve from user input. This can be an attribute from an entity, an array, or a direct datasource of type number. For instance, you can select an entity, such as dayplan.hotel_ID.
explorer
  1. Choose the Attribute: Choose the specific attribute that you want to display within the component when using an entity or an array type datasource, such as dayplan.hotel_ID.rating.
tip

Alternatively, you can establish the connection by dragging and dropping the datasource onto the Range Input component.

Server-Side Interaction

Interacting with user input data is straightforward. When you bind a datasource to the Range Input component, you can access and make use of the input content.

Subsequently, you can utilize this input value in various ways, such as within a standard action to initiate a search with matching attribute values.

Showcase

Here's a glimpse of how the Range Input component will look and behave in action:

explorer

Triggers and Events

Range Input Component

Events that can trigger actions within the component include:

EventDescription
On ClickCalls for an action when the user clicks on the component.
On KeyupCalls for an action when a keyboard key is released while the component is in focus
On KeyDownCalls for an action when a keyboard key is pressed down while the component is in focus.
On MouseEnterCalls for an action when the user's mouse cursor enters the area of the component.
On MouseLeaveCalls for an action when the user's mouse cursor exits the area of the component.
On ChangeCalls for an action when the value of the Input changes. This typically occurs when the user enters or modifies text in the Input field.

Embedded Label

Events that can trigger actions within the embedded icon include:

EventDescription
On ClickCalls for an action when the user clicks on the Label.
On KeyupCalls for an action when a keyboard key is released while the Label is in focus
On KeyDownCalls for an action when a keyboard key is pressed down while the Label is in focus.
On MouseEnterCalls for an action when the user's mouse cursor enters the area of the Label.
On MouseLeaveCalls for an action when the user's mouse cursor exits the area of the Label.

Embedded Slider Container

Events that can trigger actions within the embedded icon include:

EventDescription
On ClickCalls for an action when the user clicks on the Slider Container.
On BlurCalls for an action when the Slider Container loses focus (user clicks outside).
On FocusCalls for an action when the Slider Container gains focus (user clicks on it).
On MouseEnterCalls for an action when the user's mouse cursor enters the area of the Slider Container.
On MouseLeaveCalls for an action when the user's mouse cursor exits the area of the Slider Container.
On KeyDownCalls for an action when a keyboard key is pressed down while the Slider Container is in focus.
On KeyupCalls for an action when a keyboard key is released while the Slider Container is in focus

Embedded Filled track, Thumb, and Track

Events that can trigger actions within these embedded elements include:

EventDescription
On ClickCalls for an action when the user clicks on the element.
On KeyupCalls for an action when a keyboard key is released while the element is in focus
On KeyDownCalls for an action when a keyboard key is pressed down while the element is in focus.
On MouseEnterCalls for an action when the user's mouse cursor enters the area of the element.
On MouseLeaveCalls for an action when the user's mouse cursor exits the area of the element.