Skip to content

Commit

Permalink
update datepicker docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmetcetin01140 committed Dec 19, 2024
1 parent 0f6765e commit 65d3cc8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions apps/showcase/doc/datepicker/datetemplatedoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Component } from '@angular/core';
</app-docsectiontext>
<div class="card flex justify-center">
<p-datepicker [(ngModel)]="date">
<ng-template pTemplate="date" let-date>
<ng-template #date let-date>
<strong *ngIf="date.day > 10 && date.day < 15; else elseBlock" style="text-decoration: line-through">{{ date.day }}</strong>
<ng-template #elseBlock>{{ date.day }}</ng-template>
</ng-template>
Expand All @@ -24,15 +24,15 @@ export class DateTemplateDoc {

code: Code = {
basic: `<p-datepicker [(ngModel)]="date">
<ng-template pTemplate="date" let-date>
<ng-template #date let-date>
<strong *ngIf="date.day > 10 && date.day < 15; else elseBlock" style="text-decoration: line-through">{{ date.day }}</strong>
<ng-template #elseBlock>{{ date.day }}</ng-template>
</ng-template>
</p-datepicker>`,

html: `<div class="card flex justify-center">
<p-datepicker [(ngModel)]="date">
<ng-template pTemplate="date" let-date>
<ng-template #date let-date>
<strong *ngIf="date.day > 10 && date.day < 15; else elseBlock" style="text-decoration: line-through">{{ date.day }}</strong>
<ng-template #elseBlock>{{ date.day }}</ng-template>
</ng-template>
Expand Down
6 changes: 3 additions & 3 deletions apps/showcase/doc/datepicker/icondoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { Component } from '@angular/core';
<div class="flex-auto">
<label for="templatedisplay" class="font-bold block mb-2"> Custom Icon </label>
<p-datepicker [(ngModel)]="date3" [iconDisplay]="'input'" [showIcon]="true" [timeOnly]="true" inputId="templatedisplay">
<ng-template pTemplate="inputicon" let-clickCallBack="clickCallBack">
<ng-template #inputicon let-clickCallBack="clickCallBack">
<i class="pi pi-clock" (click)="clickCallBack($event)"></i>
</ng-template>
</p-datepicker>
Expand All @@ -44,7 +44,7 @@ export class IconDoc {
<p-datepicker [(ngModel)]="date2" [iconDisplay]="'input'" [showIcon]="true" inputId="icondisplay" />
<p-datepicker [(ngModel)]="date3" [iconDisplay]="'input'" [showIcon]="true" [timeOnly]="true" inputId="templatedisplay">
<ng-template pTemplate="inputicon" let-clickCallBack="clickCallBack">
<ng-template #inputicon let-clickCallBack="clickCallBack">
<i class="pi pi-clock" (click)="clickCallBack($event)"></i>
</ng-template>
</p-datepicker>`,
Expand All @@ -63,7 +63,7 @@ export class IconDoc {
<div class="flex-auto">
<label for="templatedisplay" class="font-bold block mb-2"> Custom Icon </label>
<p-datepicker [(ngModel)]="date3" [iconDisplay]="'input'" [showIcon]="true" [timeOnly]="true" inputId="templatedisplay">
<ng-template pTemplate="inputicon" let-clickCallBack="clickCallBack">
<ng-template #inputicon let-clickCallBack="clickCallBack">
<i class="pi pi-clock" (click)="clickCallBack($event)"></i>
</ng-template>
</p-datepicker>
Expand Down

0 comments on commit 65d3cc8

Please sign in to comment.