Skip to content

oh-knob-card - Knob & Rounded Slider Card ​

Display a knob or a rounded slider in a card to visualize and control a quantifiable item

Configuration ​

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

Card ​

Parameters of the card

titleTitleTEXT

Title of the card

Footer of the card

noBorderNo BorderBOOLEAN

Do not render the card border

noShadowNo ShadowBOOLEAN

Do not render a shadow effect to the card

outlineOutlineBOOLEAN

Show the card outline

Knob & Rounded Slider ​

Parameters are passed to the underlying round-slider control

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)

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.