Date Picker
Last updated
Last updated
pg-datepicker is a fork of implementation of Date / Date Range Picker Initial credits go to the author
First import it to your app module or any submodule as you wish
Basic Select with Search
The date class component includes the following three forms.
pg-datepicker
pg-datepicker [Mode='month']
pg-rangepicker
parameter
Instructions
Types of
Defaults
Format
String
"YYYY-MM-DD"
Disabled
Disabled
boolean
false
AllowClear
Whether to show clear button
boolean
true
ShowTime
Time options, see nz-timepicker parameter
boolean | TimePickerInnerComponent
null
DisabledDate
A callback function to disable the date, returning true to disable this date
(Date) => boolean
parameter
Instructions
Types of
Defaults
Model
Display date
Date
Current date
Placeholder
Input box prompt text
String
Mode
Selector mode, month
select only to month, day
select to day
String
"day"
parameter
Instructions
Types of
Defaults
Model
Display date
[Date, Date]
Current date
Placeholder
Input box prompt text
[String, String]
Display date format, configuration reference