1.7.0 • Published 7 years ago

tsg-calendar-lib v1.7.0

Weekly downloads
23
License
MIT
Repository
bitbucket
Last release
7 years ago

#Calendar JS Library

Generates a calendar array from a given month and year,

Use this library to generate a calendar web component or custom control.

Returns an array, each array element in the array reflects a week in the calendar month

How to use Calendar Library

var calendar = require('tsg-calendar-lib');

var data = new calendar.Calendar(6,2016).FullCalendarData;

Result:

[ 1, 2, 3, 4, 5, 6, 7 ,
8, 9, 10, 11, 12, 13, 14 ,
15, 16, 17, 18, 19, 20, 21 ,
22, 23, 24, 25, 26, 27, 28 ,
29, 30, 31, 0, 0, 0, 0 ]

Methods:

forward() -> returns and Array with the data for the next Month

previous() -> returns and Array with the data for the previous Month

getWeekData(dayNumber) -> returns and Array with the data for that week

1.7.0

7 years ago

1.6.0

7 years ago

1.5.1

7 years ago

1.5.0

7 years ago

1.4.0

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.0

7 years ago

1.0.9

8 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.5

9 years ago

1.0.4

9 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago