0.0.17 • Published 3 years ago
nz-date-picker-jalali v0.0.17
Angular DatePicker component library based on Ant Design.
Demo
View DatePickerJalali in action at https://stackblitz.com/edit/angular-ivy-ymn31f?embed=1&file=src/app/app.component.html
🖥 Environment Support
📦 Installation
We recommend using @angular/cli to install. It not only makes development easier, but also allows you to take advantage of the rich ecosystem of angular packages and tooling.
$ ng new PROJECT_NAME
$ cd PROJECT_NAME
$ ng add ng-zorro-antdMore information about
@angular/clihere.
You can also install ng-zorro-antd with npm or yarn,
Then install nz-date-picker-jalali with npm or yarn for Jalali
$ npm install ng-zorro-antd
$ npm install nz-date-picker-jalaliProvide 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 'nz-date-picker-jalali';
export class CustomDateAdapter extends NzDateAdapter<any> {
// implementation of abstract methods
}
@NgModule({
providers: [
{provide: NzDateAdapter, useClass: CustomDateAdapter}
]
})
export class AppModule {}