Angular RangeSelector - behavior

Specifies the RangeSelector's behavior properties.

Selector: dxo-behavior
Type:

Object

allowSlidersSwap

Indicates whether or not you can swap sliders.

Type:

Boolean

Default Value: true

When this property is set to true, you can move a slider to the required scale value by crossing over the other slider. When this property is set to false, you can only move a slider to the other slider's position.

animationEnabled

Indicates whether or not animation is enabled.

Type:

Boolean

Default Value: true

To make a selected range and chart series move smoothly when required, enable animation by setting the animationEnabled property to true.

callValueChanged Deprecated

Use the valueChangeMode property instead.

Specifies when to call the onValueChanged function.

Default Value: 'onMovingComplete'

manualRangeSelectionEnabled

Indicates whether or not an end user can specify the range using a mouse, without the use of sliders.

Type:

Boolean

Default Value: true

When this property is set to true, you can select the desired range using a mouse selection, and the sliders will be positioned at the start and end points of your selection.

moveSelectedRangeByClick

Indicates whether or not an end user can shift the selected range to the required location on a scale by clicking.

Type:

Boolean

Default Value: true

When this property is set to true, you can click anywhere on an unselected area and the currently selected range will shift to the position that was clicked.

snapToTicks

Indicates whether to snap a slider to ticks.

Type:

Boolean

Default Value: true

When this property is set to true, the slider docks to the nearest tick. The slider marker always displays the value of the nearest tick.

When this property is set to false, the slider will stay in the position in which it was dropped. The slider marker always displays the current scale value.

valueChangeMode

Specifies when to change the component's value.

Default Value: 'onHandleRelease'

If you want to change the component's value while a user moves the component's handle, set this property to onHandleMove. The moment when the onValueChanged function is called depends on this property.

View Demo

See Also