ngx-antd-jalali
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

ngx-antd-jalali
Jalali Date Adapter

Angular DatePicker component library based on Ant Design.

npm package extension-for-VSCode code style: prettier

Demo

View DatePickerJalali in action at Stackblitz Demo

jalali-date-picker

🖥 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

Package Sidebar

Install

npm i ngx-antd-jalali

Weekly Downloads

10

Version

1.1.0

License

MIT

Unpacked Size

1.74 MB

Total Files

133

Last publish

Collaborators

  • psychomet