SaeedDev94/ng-persian-datepicker

How to change the title of the days of the week to full word

ehsan-kargar opened this issue · 1 comments

I can't change the title of the days of the week.
for example : I want to change 'ش' to 'شنبه'

Solved !

html:
<ng-persian-datepicker [uiTheme]="'default'" #calenderRef>

ts:
@ViewChild('calenderRef') private calenderRef: NgPersianDatepickerComponent;

ngAfterViewInit(): void {
this.calenderRef.weekDays = ['شنبه', 'یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنج‌شنبه', 'جمعه'];
}