2.2.1 • Published 3 years ago
nepali-patro v2.2.1
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>