igniteui-angular-sovn
Version:
Ignite UI for Angular is a dependency-free Angular toolkit for building modern web apps
17 lines (15 loc) • 751 B
HTML
<ng-template #defaultPickerActions>
<div *ngIf="this.closeButtonLabel || this.todayButtonLabel" class="igx-date-picker__buttons">
<button #closeButton *ngIf="this.closeButtonLabel" igxButton="flat" igxRipple
(click)="this.calendarClose.emit({ owner: this })">
{{ this.closeButtonLabel }}
</button>
<button #todayButton *ngIf="this.todayButtonLabel" igxButton="flat" igxRipple
(click)="this.todaySelection.emit({ owner: this })">
{{ this.todayButtonLabel }}
</button>
</div>
</ng-template>
<igx-calendar></igx-calendar>
<ng-container *ngTemplateOutlet="this.pickerActions?.template || defaultPickerActions; context: { $implicit: this.calendar }">
</ng-container>