
|
|
This widget is also available as a Web Component in the ThingWorx Web Component SDK library.
|




|
|
When applying state formatting, you can only show one icon for the alternate and standard widget states.
|

|
Property Name
|
Description
|
Base Type
|
Default Value
|
Bindable?
|
Localizable?
|
|---|---|---|---|---|---|
|
DisplayMilliseconds
|
Adds milliseconds to the time format. When true, milliseconds are displayed in the timer.
|
BOOLEAN
|
False
|
Y
|
N
|
|
ValueLabelType
|
Sets the label type of the timer value.
|
STRING
|
Sub-Header
|
N
|
N
|
|
Icon
|
Sets an icon image for the timer.
|
MEDIALINK
|
Empty
|
N
|
|
|
AlternateIcon
|
Sets an icon image for the timer in alternate styling.
|
MEDIALINK
|
Empty
|
N
|
N
|
|
IconAlignment
|
Sets the alignment of the icon relative to the timer value.
|
STRING
|
Right
|
N
|
N
|
|
AlternateIconAlignment
|
Sets the alignment of the alternate icon relative to the timer value.
|
STRING
|
Right
|
N
|
N
|
|
IconSize
|
Specifies the width and height of the icon in pixels.
|
NUMBER
|
16
|
Y
|
N
|
|
AlternateIconSize
|
Specifies the width and height of the alternate style icon in pixels.
|
NUMBER
|
16
|
Y
|
N
|
|
AlternateStyle
|
Sets the timer to an alternate state using alternate styling and an alternate icon.
|
BOOLEAN
|
False
|
Y
|
N
|
|
Label
|
Sets the label of the timer widget.
|
STRING
|
Empty
|
Y
|
Y
|
|
LabelAlignment
|
Sets the label alignment of the widget label relative to the container.
|
STRING
|
Left
|
N
|
N
|
|
LabelType
|
Sets the label type of the timer label text.
|
STRING
|
Label
|
N
|
N
|
|
HorizontalAlignment
|
Sets the horizontal alignment of the widget.
|
STRING
|
Left
|
Y
|
N
|
|
Running
|
The state of the timer. Set to True when the timer is running. You can bind this property to pause the timer.
|
BOOLEAN
|
True
|
Y
|
N
|
|
InitialValue
|
Sets the initial time value in milliseconds. Use this property to set the countdown value when the Reset event is triggered.
|
NUMBER
|
0
|
Y
|
N
|
|
DisplayDays
|
Displays days next to hours, minutes, and seconds in the formatted time value when the value runs over 24 hours.
|
BOOLEAN
|
True
|
Y
|
N
|
|
Value
|
The current timer duration in milliseconds.
|
NUMBER
|
n/a
|
Y
|
N
|
|
Reset
|
A service that resets the timer back to the default value set using InitialValue. To stop the timer, you can also set the Running property to false.
|
Service
|
Y
|
N
|
|
|
TimerMode
|
Sets the timer mode for the widget. In stopwatch mode, the timer value is incremented to measure duration of a task. In countdown mode, the timer value set using InitialValue is decremented and an event is triggered when it reaches zero.
|
STRING
|
Stopwatch
|
Y
|
N
|
|
CountdownCompleted
|
An event that is triggered when the timer value reaches zero in countdown mode.
|
Event
|
Y
|
N
|