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
- endSelectedDate
- endSelectedMoment
- startSelectedDate
- startSelectedMoment
- timelineComponent
- timelineContributor
- translate
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:69
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:54
endSelectedMoment
• endSelectedMoment: Moment
Defined in
projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:67
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:48
startSelectedMoment
• startSelectedMoment: Moment
Defined in
projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:66
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:62
timelineContributor
• timelineContributor: HistogramContributor
Defined in
projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:64
translate
• translate: TranslateService
Defined in
projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:71
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:120
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:130
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:90
ngOnInit
▸ ngOnInit(): void
Returns
void
Implementation of
OnInit.ngOnInit
Defined in
projects/arlas-toolkit/src/lib/components/timeline/date-picker/date-picker.component.ts:74
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:106