Skip to content

oh-knob - Knob & Rounded Slider ​

Allows to change a number value on a circular track or a rounded slider

Configuration ​

Use the advanced properties to change the appearance from a knob to a rounded slider.

General ​

itemItemTEXTitem

Item to control

minMinINTEGER

Minimum value (default 0)

maxMaxINTEGER

Maximum value (default 100)

stepStepDECIMAL

Minimum interval between values (default 1)

offsetOffsetDECIMAL

Offset to be applied to the Item's state (e.g. Item state = 2; offset = 20; knob/rounded slider behaves as Item state would be 22)

ignoreDisplayStateIgnore Display StateBOOLEAN

Ignore the display state if available and always use the raw state.

releaseOnlySend command only on releaseBOOLEAN

If enabled, no commands are sent during sliding

commandIntervalCommand IntervalINTEGER

Time to wait between subsequent commands in ms (default 200)

delayStateDisplayDelay State DisplayINTEGER

Time to wait before switching from displaying user input to displaying Item state in ms (default 2000)

disabledDisabledBOOLEAN

Disable the slider (usually set via an expression since the value will not be displayed when disabled)

sizeSizeINTEGER

Visual size of the control in px (or % if responsive is true)

responsiveResponsiveBOOLEAN

Size the control using percentages instead of pixels

strokeWidthStroke WidthINTEGER

Thickness of the arcs (default 18)

startAngleStart AngleINTEGER

Angle of circle where the round slider should start (default -50); 0 is 9 o'clock; only if circleShape is not set

endAngleEnd AngleINTEGER

Angle of circle where the round slider should start (default -130); 360 is 9 o'clock; only if circleShape is not set

circleShapeCircle ShapeTEXT

Indicates the circle shape to be render

Options:
full
full
half-top
half top
half-bottom
half bottom
half-left
half left
half-right
half right
quarter-top-left
quarter top left
quarter-top-right
quarter top right
quarter-bottom-left
quarter bottom left
quarter-bottom-right
quarter bottom right
pie
pie

lineCapLine CapTEXT

Sets the shape of the end of the path; dotted path and line cap cannot be used together.

Options:
square
square
round
round

dottedPathDotted PathTEXT

Length of dotted path segments (using css stroke-dasharray); dotted path and line cap cannot be used together.

borderWidthBorder WidthINTEGER

Sets the border width of the slider (px value)

handleSizeHandle SizeTEXT

Sets the size of the slider handle (px value)

handleShapeHandle ShapeTEXT

Sets the shape of the slider handle

Options:
square
square
round
round
dot
dot

borderColorBorder ColorTEXT

Sets the border color of the slider; set borderWidth as well! (HTML value)

pathColorPath ColorTEXT

Sets the path color of the slider (HTML value)

rangeColorRange ColorTEXT

Sets the range color of the slider (HTML value)

tooltipColorTooltip ColorTEXT

Sets the tooltip color of the slider (HTML value)

variableVariableTEXT

Name of the variable to set on input change

variableKeyVariable KeyTEXT

Consider the variable value is an object and set the corresponding deep property within that object using a key syntax. Examples: user.name, user[0].address[1].street, [0], [0].label. The inner property and its parent hierarchy will be created if missing.

Inherited Properties ​

Properties are forwarded to the underlying vue-round-slider component, which means you can set these parameters. A compatibility layer ensures backward compatibility with the vue-knob-control component that was initially used.