Class IgxTimePickerComponent

Common interface for Components with show and collapse functionality

Hierarchy

Hierarchy (View Summary)

Implements

  • IgxTimePickerBase
  • ControlValueAccessor
  • OnInit
  • OnDestroy
  • AfterViewInit
  • Validator

Constructors

Properties

closed: EventEmitter<IBaseEventArgs> = ...

Emitted after the calendar has closed.

<igx-date-picker (closed)="handleClosed($event)"></igx-date-picker>
closing: EventEmitter<IBaseCancelableBrowserEventArgs> = ...

Emitted when the calendar has started closing, cancelable.

<igx-date-picker (closing)="handleClosing($event)"></igx-date-picker>
disabled: boolean = false

Enables or disables the picker.

<igx-date-picker [disabled]="'true'"></igx-date-picker>
displayFormat: string

The format used when editable input is not focused. Defaults to the inputFormat if not set.

Uses Angular's DatePipe.

<igx-time-picker displayFormat="mm:ss"></igx-time-picker>
element: ElementRef<any> = ...
formatter: (val: Date) => string

Gets/Sets a custom formatter function on the selected or passed date.

<igx-time-picker [value]="date" [formatter]="formatter"></igx-time-picker>

Type declaration

headerOrientation: PickerHeaderOrientation = PickerHeaderOrientation.Horizontal

Gets/Sets the orientation of the IgxDatePickerComponent header.

<igx-date-picker headerOrientation="vertical"></igx-date-picker>
hideHeader: boolean = false

Gets/Sets whether the header is hidden in dialog mode.

<igx-date-picker mode="dialog" [hideHeader]="true"></igx-date-picker>
id: string = ...

Sets the value of the id attribute.

<igx-time-picker [id]="'igx-time-picker-5'" [displayFormat]="h:mm tt" ></igx-time-picker>
inputFormat: string

The expected user input format and placeholder.

Default is hh:mm tt

<igx-time-picker inputFormat="HH:mm"></igx-time-picker>
mode: PickerInteractionMode = PickerInteractionMode.DropDown

Gets/Sets the interaction mode - dialog or drop down.

<igx-time-picker mode="dialog"></igx-time-picker>
opened: EventEmitter<IBaseEventArgs> = ...

Emitted after the calendar has opened.

<igx-date-picker (opened)="handleOpened($event)"></igx-date-picker>
opening: EventEmitter<IBaseCancelableBrowserEventArgs> = ...

Emitted when the calendar has started opening, cancelable.

<igx-date-picker (opening)="handleOpening($event)"></igx-date-picker>
outlet: IgxOverlayOutletDirective | ElementRef<any>

The container used for the pop-up element.

<div igxOverlayOutlet #outlet="overlay-outlet"></div>
<!-- ... -->
<igx-date-picker [outlet]="outlet"></igx-date-picker>
<!-- ... -->
overlaySettings: OverlaySettings

Overlay settings used to display the pop-up element.

<igx-date-picker [overlaySettings]="customOverlaySettings"></igx-date-picker>
placeholder: string = ''

Sets the placeholder of the picker's input.

<igx-date-picker [placeholder]="'Choose your date'"></igx-date-picker>
selected: EventEmitter<Date> = ...

Emitted after a selection has been done.

<igx-time-picker (selected)="onSelection($event)"></igx-time-picker>
spinLoop: boolean = true

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>
tabIndex: string | number

Gets/Sets the default template editor's tabindex.

<igx-date-picker [tabIndex]="1"></igx-date-picker>
validationFailed: EventEmitter<IgxTimePickerValidationFailedEventArgs> = ...

Emitted when the user types/spins invalid time in the time-picker editor.

<igx-time-picker (validationFailed)="onValidationFailed($event)"></igx-time-picker>
valueChange: EventEmitter<string | Date> = ...

Emitted when the picker's value changes.

Used for two-way bindings.

<igx-time-picker [(value)]="date"></igx-time-picker>

Accessors

Methods