Table of Contents

Class Time

Namespace
Skyline.DataMiner.Utils.InteractiveAutomationScript
Assembly
Skyline.DataMiner.Utils.InteractiveAutomationScriptToolkit.dll

Widget to show/edit a time duration.

public class Time : InteractiveWidget
Inheritance
Time
Inherited Members
Extension Methods

Constructors

Time()

Initializes a new instance of the Time class.

Time(TimeSpan)

Initializes a new instance of the Time class.

Properties

ClipValueToRange

Gets or sets a value indicating whether the value is clipped to the range. Default: false.

Decimals

Gets or sets the number of digits to be used in order to represent the fractions of seconds. Default: 0.

HasSeconds

Gets or sets a value indicating whether seconds are displayed in the time widget. Default: true.

HasSpinnerButton

Gets or sets a value indicating whether a spinner button is shown. Default: true.

IsReadOnly

Gets or sets a value indicating whether the control is displayed in read-only mode. Read-only mode causes the widgets to appear read-write but the user won't be able to change their value. This only affects interactive scripts running in a web environment.

IsSpinnerButtonEnabled

Gets or sets a value indicating whether the spinner button is enabled. Default: true.

Maximum

Gets or sets the maximum timespan. Default: TimeSpan.MaxValue.

Minimum

Gets or sets the minimum timespan. Default: TimeSpan.MinValue.

TimeSpan

Gets or sets the timespan displayed in the time widget.

Tooltip

Gets or sets the tooltip.

UpdateOnEnter

Gets or sets a value indicating whether the widget will only trigger an event when the enter key is pressed. Default: false.

ValidationState

Gets or sets the state indicating if a given input field was validated or not and if the validation was valid. This should be used by the client to add a visual marker on the input field.

ValidationText

Gets or sets the text that is shown if the validation state is invalid. This should be used by the client to add a visual marker on the input field.

Methods

LoadResult(UIResults)

Load any changes made through user interaction.

RaiseResultEvents()

Raises zero or more events of the widget. This method is called after LoadResult(UIResults) was called on all widgets.

Events

Changed

Triggered when the timespan changes. WantsOnChange will be set to true when this event is subscribed to.

FocusLost

Triggered when the user loses focus of the Time. WantsOnFocusLost will be set to true when this event is subscribed to.