UNPKG

ng-mat-daterange-picker

Version:

[![CircleCI](https://circleci.com/gh/ashishgkwd/ngx-mat-daterange-picker.svg?style=shield)](https://circleci.com/gh/ashishgkwd/ngx-mat-daterange-picker) [![Maintainability](https://api.codeclimate.com/v1/badges/2b0d09a866f6d2ed139c/maintainability)](https

32 lines (27 loc) 678 B
import { Component, OnInit, Output, EventEmitter, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core'; import { PresetItem } from '../model/model'; @Component({ selector: 'mat-drp-presets', templateUrl: './presets.component.html', styleUrls: ['./presets.component.css'], changeDetection: ChangeDetectionStrategy.OnPush }) export class PresetsComponent implements OnInit { @Input() presets: Array<PresetItem>; @Output() readonly presetChanged: EventEmitter<any> = new EventEmitter<any>(); constructor() {} ngOnInit() {} setPresetPeriod(event) { this.presetChanged.emit(event); } }