0.0.7 • Published 6 months ago

@iladiro/angular-counter v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

Counter

Angular Counter plugin with countdown and progress bar, flexible and easily customizable

Before start

This library is compatible with Angular versions >=15.0.0.0

Note: Please use version 0.0.7, which is compatible with Angular versions >=15.0.0, older versions are only compatible with Angular version ^15.2.0. It was my mistake! Thank you

  1. npm i @iladiro/angular-counter@0.0.7
  2. Import IladiroCounterModule into your module from import { IladiroCounterModule } from '@iladiro/angular-counter';

Getting Setup

Use <iladiro-counter></iladiro-counter> selector to show the counter

Note: The example below shows the mandatory data!

<iladiro-counter [startDate]="'<yourDate>'" [endDate]="'<yourDate>'"></iladiro-counter>

Options

Other options are available besides the mandatory ones

propertytyperequireddefaultnotes
startDatestringyesundefinedThe format to be used is yyyy/mm/dd hh:mm:ss
endDatestringyesundefinedThe format to be used is yyyy/mm/dd hh:mm:ss
titlestringnoundefinedIf this data is not passed, the title will not be displayed
customClassstringnoundefinedIt can be useful to add a custom class to the counter
expiredAlertTextstringnoTime is expiredThis string is shown at the end of the countdown
progressbarSizestringnoundefinedTo have different sizes (sm - md - lg - xxl)
progressbarColorstringnoundefinedTo change the color of the bar
daysLabelstringnoDaysTo show the day field label
hoursLabelstringnoHoursTo show the hours field label
minutesLabelstringnoMinutesTo show the minutes field label
secondsLabelstringnoSecondsTo show the seconds field label
expiredEventeventnoundefinedWhen the counter expires, the event is issued. Value is a boolean
0.0.5

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.4

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago