Skip to main content

Slider

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.

Sliders allow users to select a value from a range of values.

Slider - Code

Basic​

Marker​

Trace​

Error​

Validation​

API for ix-slider​

Properties​

Description

Show control as disabled

Attribute
disabled
Type
boolean
Default
false
Description

Show text below the field component

Attribute
helper-text
Type
string | undefined
Description

Info text for the field component

Attribute
info-text
Type
string | undefined
Description

Error text for the field component

Attribute
invalid-text
Type
string | undefined
Description

Label for the field component

Attribute
label
Type
string | undefined
Description

Define tick marker on the slider. Marker has to be within slider min/max

Type
number[] | undefined
Description

Maximum slider value

Attribute
max
Type
number
Default
100
Description

Minimum slider value

Attribute
min
Type
number
Default
0
Description

Show helper, info, warning, error and valid text as tooltip

Attribute
show-text-as-tooltip
Type
boolean
Default
false
Attribute
step
Type
number
Default
1
Description

Color the track from traceReference to the current value, or from the minimum if they are equal.

Show the reference marker only when it is between the minimum and maximum and differs from the value.

Attribute
trace
Type
boolean
Default
false
Description

Start point of the trace segment when trace is enabled

Attribute
trace-reference
Type
number
Default
0
Description

Valid text for the field component

Attribute
valid-text
Type
string | undefined
Description

Current value of the slider

Attribute
value
Type
number
Default
0
Description

Warning text for the field component

Attribute
warning-text
Type
string | undefined

Events​

Description

Will emit the value when it changes

Event
valueChange
Detail
number

Slot​

Description

Element will be displayed at the end of the slider

Description

Element will be displayed at the start of the slider