ngx-persian-date-selector
TypeScript icon, indicating that this package has built-in type declarations

1.0.9 • Public • Published

ngx-persian-date-selector

Angular 12+ persian date selector

Usage

  1. Install from npm:
npm install ngx-persian-date-selector --save
  1. Import NgxPersianDateSelectorModule to app.module.ts:
import { NgxPersianDateSelectorModule } from 'ngx-persian-date-selector';
@NgModule({
    declarations: [
        AppComponent
    ],
    imports: [
        NgxPersianDateSelectorModule
    ],
    bootstrap: [AppComponent]
})
export class AppModule { }
  1. Now use this in your component:
<mat-form-field>
	<input type="text" #date matInput placeholder="Date">
	<ngx-persian-date-selector matSuffix [matInput]="date"></ngx-persian-date-selector>
</mat-form-field>

Events

Event Description Sample
onSelect() triggers when date is selected (onSelect)="dateSelected($event)"

Package Sidebar

Install

npm i ngx-persian-date-selector

Weekly Downloads

9

Version

1.0.9

License

none

Unpacked Size

163 kB

Total Files

18

Last publish

Collaborators

  • rezat1994