Skip to main content

Slider

Slider component is for displaying current values and intervals in a range, for the user to input the range.

Example

A8Studio

API Methods

setDisabled

Sets the button state using the boolean value

setDisabled(disabled: boolean): void

setLabel

Sets the label of the field.

setLabel(label: string): void

setMaxValue

Sets the maximum value

setMaxValue(value: number): void

setMinValue

setMinValue(value: number): void

setPrefix

It helps to identify the scope to which the message belongs.

setPrefix(value: string): void

setSize

Sets the size only using the parameters passed in.

setSize(size: "small" | "medium" | "large"): void

setStepValue

StepValue specifies discrete intervals between the minimum and maximum values that the slider is allowed to represent. By default its value is 1.

setStepValue(value: number): void

setSuffix

setSuffix(value: string): void

setValue

Sets the value of a field.

setValue(data: string): void

setVisibility

Sets if elements of the given category is visible in this view.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the hide condition

setVisibilityCondition(condition: string): void