0.0.17 • Published 1 year ago

nz-date-picker-jalali v0.0.17

Weekly downloads
-
License
-
Repository
github
Last release
1 year 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

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago