feat(cardex): implement cardex module with filters, templates, and service integration
This commit is contained in:
@@ -41,11 +41,13 @@ export class UikitFlatpickrJalaliComponent implements OnInit {
|
||||
ngOnInit(): void {
|
||||
this.fpInstance = flatpickr(this.wrapperRef.nativeElement, {
|
||||
...this.options,
|
||||
now: dayjs().calendar('jalali').format('YYYY/MM/DD'),
|
||||
locale: 'fa',
|
||||
altInputClass: 'p-inputtext w-full',
|
||||
dateFormat: 'Y-m-d',
|
||||
altFormat: 'Y-m-d',
|
||||
onChange: (selectedDates: Date[], dateStr: string) => {
|
||||
this.valueChange.emit(dateStr);
|
||||
if (this.control) this.control.setValue(dateStr);
|
||||
if (this.control) this.control.setValue(dayjs(dateStr).toISOString());
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user