TimePicker.periodPattern property

Gets or sets the display pattern for the period.

The default period pattern is period.abbreviated(2). You can change the period pattern by changing the number of integers displayed.

Syntax

<div data-win-control="WinJS.UI.TimePicker" data-win-options="{ periodPattern : value}" />
var periodPattern = timePicker.periodPattern;
timePicker.periodPattern = periodPattern;

Property value

Type: String

The display pattern for the period.

The following patterns can be used for the period: {era.abbreviated} | {era.abbreviated(n)}.

Examples

The following code shows how to set a period pattern.

timePicker.periodPattern = "{period.abbreviated(4)}";

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

TimePicker