1.1.0 • Published 5 months ago

ngx-antd-jalali v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Angular DatePicker component library based on Ant Design.

npm package extension-for-VSCode code style: prettier

Demo

View DatePickerJalali in action at Stackblitz Demo

🖥 Environment Support

  • Angular ^17.0.0 npm package
  • 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 {}

Sample

Jalali-Moment date adapter

1.1.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago