feat: Enhance customer and inventory components with new features and improvements
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
ViewChild,
|
||||
} from '@angular/core';
|
||||
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
||||
import dayjs from 'dayjs';
|
||||
import flatpickr from 'flatpickr-wrap';
|
||||
import { BaseOptions } from 'flatpickr-wrap/dist/types/options';
|
||||
import { InputTextModule } from 'primeng/inputtext';
|
||||
@@ -40,6 +41,7 @@ export class UikitFlatpickrJalaliComponent implements OnInit {
|
||||
ngOnInit(): void {
|
||||
this.fpInstance = flatpickr(this.wrapperRef.nativeElement, {
|
||||
...this.options,
|
||||
now: dayjs().calendar('jalali').format('YYYY/MM/DD'),
|
||||
altInputClass: 'p-inputtext w-full',
|
||||
onChange: (selectedDates: Date[], dateStr: string) => {
|
||||
this.valueChange.emit(dateStr);
|
||||
|
||||
Reference in New Issue
Block a user