ngx-antd-jalali
v1.2.0
Published
An DatePicker based on Ant Design and Angular
Downloads
51
Maintainers
Readme
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 {}