1.0.0 • Published 6 years ago

ng-countdowner v1.0.0

Weekly downloads
8
License
-
Repository
-
Last release
6 years ago

NgCountdowner

NgCountdowner is a configurable Angular 6 countdown timer.

<app-ng-countdowner
   [countDownTimerVisible]="true"
   [start]="'10/5/2017 20:21:40'"
   [end]="'11/1/2019 00:00'"
   [expiryMessage]="'This is a custom expiry message'"
   (timerExpired)="handleEvent($event)"
</app-ng-countdowner>

Configuration fields

PropertyDescriptionDefault valueFormatRequiredData type
countDownTimerVisibleEnable countdown timertrueNboolean
expiryMessageCustom message to display once countdown expiresNstring
startstart date of countdown timermm/d/yyyy hh:mm:ssNstring
endend date of countdown timermm/d/yyyy hh:mm:ssYstring

Events

EventsDescriptionData
timerExpiredemits when countdown endsobject