1.1.0 • Published 5 months ago
ngx-antd-jalali v1.1.0
Angular DatePicker component library based on Ant Design.
Demo
View DatePickerJalali in action at Stackblitz Demo
🖥 Environment Support
- Angular
^17.0.0
- Server-side Rendering
- Modern browsers including the following specific versions
📦 Installation
$ npm install ng-zorro-antd
$ npm install ngx-antd-jalali jalali-moment
Provide custom DateAdapter
If you need to present another calendar like Jalali or Hijri, you can provide a custom NzDateAdapter which implements required methods to deal with native date object.
Example
import { NzDateAdapter } from 'ngx-antd-jalali/core';
export class CustomDateAdapter extends NzDateAdapter<any> {
// implementation of abstract methods
}
@NgModule({
providers: [{ provide: NzDateAdapter, useClass: CustomDateAdapter }],
})
export class AppModule {}