0.0.17 • Published 3 years ago

nz-date-picker-jalali v0.0.17

Weekly downloads
-
License
-
Repository
github
Last release
3 years ago

Angular DatePicker component library based on Ant Design.

npm package extension-for-VSCode code style: prettier

Demo

View DatePickerJalali in action at https://stackblitz.com/edit/angular-ivy-ymn31f?embed=1&file=src/app/app.component.html

🖥 Environment Support

  • Angular ^14.0.0 npm package

📦 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-antd

More information about @angular/cli here.

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-jalali

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 'nz-date-picker-jalali';

export class CustomDateAdapter extends NzDateAdapter<any> {
    // implementation of abstract methods
}

@NgModule({
  providers: [
    {provide: NzDateAdapter, useClass: CustomDateAdapter}
  ]
})
export class AppModule {}

Sample

Jalali-Moment date adapter

0.0.17

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago