MatDaterangepicker
This is an extension library for the native Angular Material Datepicker. Then you can use all the options provided by the Matdatepicker
material component.

Requirements
Angular | Version |
---|---|
angular | >= 9.0.0 |
@angular/material | >= 9.0.0 |
Installation
npm i mat-daterangepicker
import MatDaterangepickerModule
in your module
;
Angular Material Theme
import code bellow in your material style theme to have compatibility with your current material theme.
;
Usage
// in your component
Options
Option | Description |
---|---|
@Input() dualView: boolean | An input to display two calendars when selecting dates |
@Input() applyButton: boolean | An input to display an apply button to close the calendar picker |
@Input() showCustomRanges: boolean | An input to display default custom ranges options in the calendar picker |
@Ouput() apply: EventEmitter | Fired when apply button is clicked |
Mehods
Method | Description |
---|---|
applyRange | Apply the range and close the calendar picker |
clearRange | Clear the selected dates |