File

projects/components/src/widgets/common/time/time.component.doc.ts

Description

The wmTime component defines the time widget.

Index

Methods
Inputs

Methods

onBlur
onBlur($event: MouseEvent, widget: any)

Callback function which will be triggered when the widget loses focus.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

Returns : void
onChange
onChange($event: MouseEvent, widget: any, newVal: string, oldVal: string)

Callback function which will be triggered when the widget value changes.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

newVal string No

New value of the widget

oldVal string No

Old value of the widget

Returns : void
onClick
onClick($event: MouseEvent, widget: any)

Callback function which will be triggered when the widget is clicked.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

Returns : void
onFocus
onFocus($event: MouseEvent, widget: any)

Callback function which will be triggered when the widget gets focused.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

Returns : void
onMouseenter
onMouseenter($event: MouseEvent, widget: any)

Callback function which will be triggered when the mouse enters the widget.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

Returns : void
onMouseleave
onMouseleave($event: MouseEvent, widget: any)

Callback function which will be triggered when the mouse leaves the widget.

Parameters :
Name Type Optional Description
$event MouseEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

Returns : void
onTap
onTap($event: TouchEvent, widget: any)

Callback function which will be triggered when the tap event is triggered on a widget.

Parameters :
Name Type Optional Description
$event TouchEvent No

DOM event on which call back is triggered

widget any No

Instance of the time widget

Returns : void

Inputs

autofocus

This property makes the widget get focused automatically when the page loads.

Type : boolean

Default value : false

datavalue

This property defines the value of the time widget.

Bindable: true

Type : string

disabled

This property will be used to disable/enable the time widget on the web page.

Bindable: true

Type : boolean

Default value : false

hint

Hint text is shown for the time widget widget on hover.

Bindable: true

Type : string

hourstep

This property can be used to set the number of hours to increase or decrease per step.

Type : number

Default value : 1

maxtime

This property is used to specify the maximum time to end with.

Type : string

mintime

This property is used to specify the minimum time to start with.

Type : string

minutestep

This property can be used to set the number of minutes to increase or decrease per step.

Type : number

Default value : 15

name

Name of the time widget.

Type : string

outputformat

This property can be used to set the output format for the time widget.

Allowed Values: Standard Patterns like 'HH:mm:ss', 'h:m:s', 'hh:mm a', etc.

Type : string

Default value : 'HH:mm:ss'

placeholder

Placeholder for the time widget.

Bindable: true

Type : string

Default value : 'Select Time'

readonly

This property will be used to make the time widget non-editable on the web page.

Bindable: true

Type : boolean

Default value : false

required

If the required property is set to true, required class is applied to the label[an asterik will be displayed next to the content of the label'].

Bindable: true

Type : boolean

Default value : false

shortcutkey

The shortcut key property specifies a shortcut key to activate/focus an element.

Type : string

show

This property will be used to show/hide the time widget on the web page.

Bindable: true

Type : boolean

Default value : true

tabindex

This property specifies the tab order of the time Widget.

Type : number

Default value : 0

timepattern

This property can be used to set the display pattern of the time widget.

Allowed Values: Standard Patterns like 'HH:mm:ss', 'h:m:s', 'hh:mm a', etc.

Type : string

Default value : 'hh:mm a'

result-matching ""

    No results matching ""