solid-knobs / ImageStripControlProps
-
Omit<ControlProps,"children">↳
ImageStripControlProps
• Optional label: string
The label that should be used for the aria label (for accessibility).
Omit.label
• Optional defaultValue: number
The default value.
Omit.defaultValue
• value: number
The un-normalised value.
Omit.value
• range: Range
The range of the value.
Omit.range
• Optional speed: number
The relative speed of the change gesture. The default is 1.
Omit.speed
• Optional hideCursor: boolean
Whether the cursor should be hidden while changing the value. Note! This might result in constant annoying pop-ups in certain browsers.
Omit.hideCursor
• imageSrc: string
The path to the image strip to use.
• numFrames: number
The number of frames in the image strip.
• Optional horizontal: boolean
Set to true if the image strip is laid out horizontally. Will be interpreted as vertical otherwise.
▸ Optional onGestureStart(e): void
Called when starting the change gesture.
| Name | Type |
|---|---|
e |
MouseEvent | TouchEvent |
void
Omit.onGestureStart
▸ Optional onGestureEnd(e): void
Called when ending the change gesture.
| Name | Type |
|---|---|
e |
MouseEvent | TouchEvent |
void
Omit.onGestureEnd
▸ onChange(value): void
Called with the un-normalised value when it changes.
| Name | Type | Description |
|---|---|---|
value |
number |
The un-normalised value. |
void
Omit.onChange