nepali-patro
TypeScript icon, indicating that this package has built-in type declarations

2.2.1 • Public • Published

NepaliPatro

This is the simple library for developers who wants a Nepali Calendar in there Form.You can Integrate this library with Reactive Form or template Driven Form.For english to Nepali Date You Can use Pipe as {{yourEnglishDate | engNepDate}} For example click to demo

demo https://stackblitz.com/edit/angular-ivy-pdcrzp?file=src/app/calendar/calendar.component.html

Properties

Name Type Description Default
headerColor String Change the color of header #1abc9c
responseType number Change the response Type. 0 is for AD,1 is for BS and 2 Is for BOTH 0
displayNepali boolean Change the display Type.true is for nepali and false is for english false
layoutType number Change the Layout Type.0 display only current nepali date and 1 display both nepali date and english 0

Usages

For Reactive Form

<nepali-patro formControlName="yourControlName" [displayNepali]="true"
                [layoutType]="1" [responseType]="1" [headerColor]="'#ffff'"> 
</nepali-patro>

For Template driven Form

<nepali-patro [(ngModel)]="yourModel" [responseType]="1" [headerColor]="'#ffff'"> 
	</nepali-patro>

Package Sidebar

Install

npm i nepali-patro

Weekly Downloads

5

Version

2.2.1

License

none

Unpacked Size

4.52 MB

Total Files

35

Last publish

Collaborators

  • rujan