Calendar Methods & Properties



Description

You will get an initialized instance variable to use calendar methods and properties once you initialize the calendar.

The following table shows the calendar methods and properties used in Framework7 −

S.No Methods & Properties with Description
Properties
1

myCalendar.params

It is the object with passed initialization parameters.

2

myCalendar.value

It is an array where each item holds the selected date.

3

myCalendar.opened

It is true if calendar is currently opened.

4

myCalendar.inline

It is true if calendar is an inline calendar.

5

myCalendar.cols

It is an array with specified columns where each column also has its own method and properties.

6

myCalendar.container

It is the DOM7 instance with calendar HTML container.

Methods
7

myCalendar.setValue(values)

It sets new selected dates. It accepts values which is an array where each item represents the selected date.

8

myCalendar.nextMonth(duration)

It is the calendar transition to the next month in ms.

9

myCalendar.prevMonth(duration)

It is the calendar transition to the previous month in ms.

10

myCalendar.nextYear()

It is the calendar transition to the next year.

11

myCalendar.prevYear()

It is the calendar transition to the previous year.

12

myCalendar.setYearMonth(year, month, duration)

It is the calendar transition to a aspecified year and month for specified duration in ms.

13

myCalendar.open()

It is used to open the calendar.

14

myCalendar.close()

It is used to close the calendar.

15

myCalendar.destroy()

It is used to destroy calendar instance and removes all the events.

framework7_calendar.htm
Advertisements