src/modules/date-range-picker/components/date-range-picker.component.ts
Component to display the stark date-range-picker
ControlValueAccessor
OnInit
OnDestroy
encapsulation | ViewEncapsulation.None |
host | { |
providers |
{
provide: NG_VALUE_ACCESSOR, multi: true, useExisting: StarkDateRangePickerComponent
}
|
selector | stark-date-range-picker |
templateUrl | ./date-range-picker.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
Accessors |
Public
constructor(logger: StarkLoggingService, injector: Injector, renderer: Renderer2, elementRef: ElementRef, cdRef: ChangeDetectorRef)
|
||||||||||||||||||||||||
Class constructor
Parameters :
|
dateFilter | |
Type : StarkDatePickerFilter
|
|
Filter function or a string Will be applied to both date-picker |
dateMask | |
Type : StarkDatePickerMaskConfig | undefined
|
|
Timestamp Mask Configuration to apply on the start/end date-picker.
If |
disabled | |
Type : boolean
|
|
Whether the date pickers are disabled |
endDate | |
Type : Date | undefined
|
|
Source Date to be bound to the end datepicker model |
endDateLabel | |
Type : string
|
|
Default value : "STARK.DATE_RANGE_PICKER.TO"
|
|
Label to be displayed in the end datepicker |
endMaxDate | |
Type : moment.Moment | null
|
|
Maximum date of the end date picker |
endMinDate | |
Type : moment.Moment | null
|
|
Minimum date of the end date picker |
rangeFormGroup | |
Type : UntypedFormGroup
|
|
Input to manage both start date and end date. |
rangePickerId | |
Type : string
|
|
Default value : ""
|
|
HTML "name" attribute of the element. |
rangePickerName | |
Type : string
|
|
Default value : ""
|
|
HTML "name" attribute of the element. |
required | |
Type : boolean
|
|
Whether the date pickers are required |
startDate | |
Type : Date | undefined
|
|
Source Date to be bound to the start datepicker model |
startDateLabel | |
Type : string
|
|
Default value : "STARK.DATE_RANGE_PICKER.FROM"
|
|
Label to be displayed in the end datepicker |
startMaxDate | |
Type : moment.Moment | null
|
|
Maximum date of the start date picker |
startMinDate | |
Type : moment.Moment | null
|
|
Minimum date of the start date picker |
color | |
Type : string
|
|
Inherited from
AbstractStarkUiComponent
|
|
Defined in
AbstractStarkUiComponent:16
|
|
Color theme |
dateRangeChanged | |
Type : EventEmitter
|
|
Output that will emit a specific date range whenever the selection has changed |
Public ngOnDestroy |
ngOnDestroy()
|
Angular lifecycle method
Returns :
void
|
Public ngOnInit |
ngOnInit()
|
Inherited from
AbstractStarkUiComponent
|
Defined in
AbstractStarkUiComponent:484
|
Angular lifecycle method
Returns :
void
|
Public onDateChanged | ||||||||
onDateChanged(dateOrigin: "start" | "end")
|
||||||||
Handle the date changed on the start and end datepicker
Parameters :
Returns :
void
|
Private Optional _dateMask |
Type : StarkDatePickerMaskConfig
|
Public endPicker |
Type : StarkDatePickerComponent
|
Decorators :
@ViewChild('endPicker', {static: true})
|
Reference to the end datepicker embedded in this component |
Public logger |
Type : StarkLoggingService
|
Decorators :
@Inject(STARK_LOGGING_SERVICE)
|
- The `StarkLoggingService` instance of the application.
|
Static ngAcceptInputType_dateMask |
Type : BooleanInput | StarkDatePickerMaskConfig
|
Static ngAcceptInputType_endMaxDate |
Type : StarkDateInput
|
Static ngAcceptInputType_endMinDate |
Type : StarkDateInput
|
Static ngAcceptInputType_required |
Type : BooleanInput
|
Static ngAcceptInputType_startMaxDate |
Type : StarkDateInput
|
Static ngAcceptInputType_startMinDate |
Type : StarkDateInput
|
Public startPicker |
Type : StarkDatePickerComponent
|
Decorators :
@ViewChild('startPicker', {static: true})
|
Reference to the start datepicker embedded in this component |
startDate | ||||||
getstartDate()
|
||||||
Source Date to be bound to the start datepicker model
Returns :
Date | undefined
|
||||||
setstartDate(value: Date | undefined)
|
||||||
Parameters :
Returns :
void
|
startMinDate | ||||||
getstartMinDate()
|
||||||
setstartMinDate(value: moment.Moment | null)
|
||||||
Minimum date of the start date picker
Parameters :
Returns :
void
|
startMaxDate | ||||||
getstartMaxDate()
|
||||||
setstartMaxDate(value: moment.Moment | null)
|
||||||
Maximum date of the start date picker
Parameters :
Returns :
void
|
endDate | ||||||
getendDate()
|
||||||
Source Date to be bound to the end datepicker model
Returns :
Date | undefined
|
||||||
setendDate(value: Date | undefined)
|
||||||
Parameters :
Returns :
void
|
endMinDate | ||||||
getendMinDate()
|
||||||
setendMinDate(value: moment.Moment | null)
|
||||||
Minimum date of the end date picker
Parameters :
Returns :
void
|
endMaxDate | ||||||
getendMaxDate()
|
||||||
setendMaxDate(value: moment.Moment | null)
|
||||||
Maximum date of the end date picker
Parameters :
Returns :
void
|
rangeFormGroup | ||||||
setrangeFormGroup(val: UntypedFormGroup)
|
||||||
Input to manage both start date and end date.
Parameters :
Returns :
void
|
dateMask | ||||||
getdateMask()
|
||||||
Timestamp Mask Configuration to apply on the start/end date-picker.
If
Returns :
StarkDatePickerMaskConfig | undefined
|
||||||
setdateMask(value: StarkDatePickerMaskConfig | undefined)
|
||||||
Parameters :
Returns :
void
|
disabled | ||||||
setdisabled(val: boolean)
|
||||||
Whether the date pickers are disabled
Parameters :
Returns :
void
|
required | ||||||
getrequired()
|
||||||
Whether the date pickers are required
Returns :
boolean
|
||||||
setrequired(value: boolean)
|
||||||
Parameters :
Returns :
void
|