Skip to content

Commit

Permalink
doc(demo):add lockStartDate in full-options page
Browse files Browse the repository at this point in the history
  • Loading branch information
fetrarij committed Jul 12, 2019
1 parent d813d6c commit 1ceff3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions demo/src/app/full/full.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
[showClearButton]="options.showClearButton"
[showISOWeekNumbers]="options.showISOWeekNumbers"
[customRangeDirection]="options.customRangeDirection"
[lockStartDate]="options.lockStartDate"
firstMonthDayClass="first-day"
lastMonthDayClass="last-day"
emptyWeekRowClass="empty-week"
Expand All @@ -47,6 +48,7 @@ <h4>Options:</h4>
<strong>showWeekNumbers:</strong><mat-checkbox [(ngModel)]="options.showWeekNumbers">Value: {{options.showWeekNumbers}}</mat-checkbox><br/>
<strong>showISOWeekNumbers:</strong><mat-checkbox [(ngModel)]="options.showISOWeekNumbers">Value: {{options.showISOWeekNumbers}}</mat-checkbox><br/>
<strong>customRangeDirection:</strong><mat-checkbox [(ngModel)]="options.customRangeDirection">Value: {{options.customRangeDirection}}</mat-checkbox><br/>
<strong>lockStartDate:</strong><mat-checkbox [(ngModel)]="options.lockStartDate">Value: {{options.lockStartDate}}</mat-checkbox><br/>
<strong>minDate:</strong> {{minDate | date: 'dd/MM/yyyy'}}<br/>
<strong>maxDate:</strong> {{maxDate | date: 'dd/MM/yyyy'}}<br/>
<strong>locale</strong> : <br/>
Expand Down
3 changes: 2 additions & 1 deletion demo/src/app/full/full.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export class FullComponent implements OnInit {
singleDatePicker: false,
showWeekNumbers: false,
showISOWeekNumbers: false,
customRangeDirection: false
customRangeDirection: false,
lockStartDate: false
};
minDate: moment.Moment = moment().subtract(5, 'days');
maxDate: moment.Moment = moment().add(2, 'month');
Expand Down

0 comments on commit 1ceff3f

Please sign in to comment.