arlas-wui-toolkit / Exports / DatePickerComponent

Class: DatePickerComponent

The component allows to set start/end values of a temporal selection on the timeline

Implements

  • OnInit
  • OnChanges

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new DatePickerComponent(arlasStartupService, translate)

Parameters

Name Type
arlasStartupService ArlasStartupService
translate TranslateService

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:50

Properties

endSelectedDate

endSelectedDate: number | Date

Input

: Angular

Description

End value of the date picker. It must be date or a timestamp.

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:35


endSelectedMoment

endSelectedMoment: Moment

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:48


startSelectedDate

startSelectedDate: number | Date

Input

: Angular

Description

Start value of the date picker. It must be date or a timestamp.

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:29


startSelectedMoment

startSelectedMoment: Moment

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:47


timelineComponent

timelineComponent: any

Input

: Angular

Description

In this object, all the necessary inputs of HistogramComponent (ARLAS-web-components) must be set as well as the identifier of the contributor that fetches timeline data. The HistogramContributor should be declared before in the contributorRegistry of ArlasStartupService.

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:43


timelineContributor

timelineContributor: HistogramContributor

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:45


translate

translate: TranslateService

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:52

Methods

convertDateToMoment

convertDateToMoment(date): any

Parameters

Name Type
date number | Date

Returns

any

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:93


fixUtc

fixUtc(date): Moment

Owl-datetime-picker produces a moment that is based on the local. Offsets the time by the UTC offset to receive a correct UTC time when updating the contributor.

Parameters

Name Type
date Moment

Returns

Moment

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:103


ngOnChanges

ngOnChanges(changes): void

Parameters

Name Type
changes SimpleChanges

Returns

void

Implementation of

OnChanges.ngOnChanges

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:63


ngOnInit

ngOnInit(): void

Returns

void

Implementation of

OnInit.ngOnInit

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:55


setDate

setDate(): void

Applies a temporal filter on the timeline when a date is selected on the date picker

Returns

void

Defined in

projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:79