Skip to main content

Counter

Mandatory properties

PropertyTypeDescription
maxValueintegerThe maximum value that value can have.
minValueintegerThe minimum value that value can have.
repeatintegerThe number of ticks before value is increased (or decreased) by step.
valueintegerThe current value.
widthintegerThe minimum number of digits in the resulting text.

Optional properties

PropertyTypeDescription
formatstringA number format used to convert the numeric value to a text.
paddingstringA single padding character. The character is used to pad the text up to width number of digits.
stepintegerThe number to increase (or decrease) value by. Can be negative.

Example

{
"maxValue": 99,
"minValue": 0,
"repeat": 0,
"step": 1,
"value": 0,
"width": 2
}