Number Range

A specialized range input component for selecting numeric values within a specified interval. It provides a dual-input interface for minimum and maximum values, with built-in validation to ensure the range boundaries are valid. Ideal for filtering numeric data, setting price ranges, or defining numeric boundaries. Supports dynamic header display, close functionality, and nested component management. Ideal for creating organized, interactive UI sections with flexible visibility and styling options.


Extends: fieldComponent


Fields

Name

Code

Data Type

Description

Minimum Value

minimumValue

text

Sets the lower boundary value for the number range

Maximum Value

maximumValue

text

Sets the upper boundary value for the number range

Decimal Places

digits

number

Specifies the number of decimal places to display for range values

Custom Validation Script

customValidationScript

text

A custom JavaScript function for additional range validation rules

Custom Validation Message

customValidationMessage

multi-locale

The error message shown when custom range validation fails (Multi-lingual)

Unique

unique

boolean

Ensures the selected range doesn't duplicate existing ones

Label

label

multi-locale

Label for the range field

ID

resourceId

text

Unique identifier for the component

Style Classes

styleClasses

text

CSS classes for styling

Width

widthClass

text

Controls component width

Value

value

text

Current range values

Visible

isVisible

boolean

Controls component visibility

Enabled

enabled

boolean

Controls whether component is enabled


Methods

Name

Description

created

Initializes the field type as 'number' for the range component

getRange

Calculates and returns the selected numeric range

setRangePreset

Sets predefined range values if applicable


Events

Name

Description

onChange

Triggered when either the minimum or maximum value is modified

onBlur

Triggered when the range input loses focus

onFocus

Triggered when the range input gains focus