Emitted when the calendar has started closing, cancelable.
Enables or disables the picker.
The format used when editable input is not focused. Defaults to the inputFormat
if not set.
Gets/Sets a custom formatter function on the selected or passed date.
Sets the orientation of the picker's header.
Sets the value of the id
attribute.
<igx-time-picker [id]="'igx-time-picker-5'" [displayFormat]="h:mm tt" ></igx-time-picker>
The expected user input format and placeholder.
Gets/Sets the interaction mode - dialog or drop down.
Emitted after the calendar has opened.
Emitted when the calendar has started opening, cancelable.
The container used for the pop-up element.
Overlay settings used to display the pop-up element.
Sets the placeholder
of the picker's input.
Emitted after a selection has been done.
Sets whether the seconds, minutes and hour spinning will loop back around when end value is reached. By default it's set to true.
<igx-time-picker [spinLoop]="false"></igx-time-picker>
Gets/Sets the default template editor's tabindex.
Emitted when the user types/spins invalid time in the time-picker editor.
Emitted when the picker's value changes.
An accessor that returns the label of cancel button.
Overrides the default text of the Cancel button.
Defaults to the value from resource strings, "Cancel"
for the built-in EN.
<igx-time-picker cancelButtonLabel='Exit' [value]="date" format="h:mm tt"></igx-time-picker>
Gets if the dropdown/dialog is collapsed
let isCollapsed = this.timePicker.collapsed;
Delta values used to increment or decrement each editor date part on spin actions and
to display time portions in the dropdown/dialog.
By default itemsDelta
is set to {hour: 1, minute: 1, second: 1}
<igx-time-picker [itemsDelta]="{hour:3, minute:5, second:10}" id="time-picker"></igx-time-picker>
Gets the locale
of the date-picker.
If not set, defaults to applciation's locale..
Sets the locale
of the date-picker.
Expects a valid BCP 47 language tag.
An accessor that returns the label of ok button.
Overrides the default text of the OK button.
Defaults to the value from resource strings, "OK"
for the built-in EN.
<igx-time-picker okButtonLabel='SET' [value]="date" format="h:mm tt"></igx-time-picker>
An accessor that returns the resource strings.
An accessor that sets the resource strings. By default it uses EN resources.
Determines how the picker's input will be styled.
The currently selected value / time from the drop-down/dialog
The current value is of type Date
const newValue: Date = new Date(2000, 2, 2, 10, 15, 15);
this.timePicker.value = newValue;
An accessor that allows you to set a time using the value
input.
public date: Date = new Date(Date.now());
//...
<igx-time-picker [value]="date" format="h:mm tt"></igx-time-picker>
Gets the start day of the week. Can return a numeric or an enum representation of the week day. If not set, defaults to the first day of the week for the application locale.
Sets the start day of the week.
Can be assigned to a numeric value or to WEEKDAYS
enum value.
Decrement a specified DatePart
The optional DatePart to decrement. Defaults to Hour.
The optional delta to decrement by. Overrides itemsDelta
.
Increment a specified DatePart
.
The optional DatePart to increment. Defaults to Hour.
The optional delta to increment by. Overrides itemsDelta
.
Opens the picker's dialog UI.
OverlaySettings - the overlay settings to use for positioning the drop down or dialog container according to
<igx-time-picker #picker [value]="date"></igx-time-picker>
<button type="button" igxButton (click)="picker.open()">Open Dialog</button>
Emitted after the calendar has closed.