Webanizr Logo
Open / sluit menu
Module calendarList

Last change: August 5, 2020

Current version: 1.3.0

This module creates a calendar list view. Creates a table inside given dom element according to given month.

webanizr.collect('calendarList', parameters, callback);

webanizr.send('calendarList', data, parameters, callback);

collect

parameters

The calendarList module accepts the following parameters:

id__dom (required)

The id of the element to put the table in.

current__date (optional)

The date of the month to show as a timestamp (seconds, not milliseconds).

selected__date (optional)

The date to highlight in the view as a timestamp (seconds, not miliseconds).

abbr__language (optional)

The language to show the calander in. The language options of the date plugin are supported. Default language is "en".

callback

The callback function to call. It passes the parameters the collect received as data.

Send

data

The items to display in the list. Each item should have the proprerty nr__day and the value should be one of the days of the month. If an item does not meet those criterea it will not be shown.

parameters

The authentication module accepts the following parameters:

id__dom (required)

The id of the element the calendar was build in by the collect method

id__template (required)

The id of the template html id

mode__showemptydays

If set to true, the template will also be applied to the empty days

callback

The callback function that is called after the items are shown in the list

demo

https://cdn.cpmodules.webanizr.com/demo/calendar-list/index.html

Changelog

  • August 5, 2020: 1.4.0 - Calendar keeps timestamp in webanizr variable so it can be used by other scripts
  • August 5, 2020: 1.3.0 - Calendar list retreives new data if the users navigates in time
  • August 5, 2020: 1.2.1 - Removed console.log
  • June 20, 2020: 1.2.0 - Added header bar and navigation
  • April 17, 2020: 1.1.0 - Added the send method
  • April 15, 2020: 1.0.0 - Initial commit