1.0.1 • Public • Published

Tabris.js Calendar Plugin

A calendar widget for Tabris.js, allowing to show and pick a date. Currently only Android is supported.

Calendar widget on Android


The following snippet shows how the tabris-plugin-calendar plugin can be used in a Tabris.js app:

new escalendar.Calendar({
  left: 0, right: 0, top: 0, bottom: 0,
  date: 946684800000 // year 2000
}).on('dateChanged', ({value: date}) => console.log(date))

A more elaborate example can be found in the example folder. It provides a Tabris.js project that demonstrates the various features of the tabris-plugin-calendar widget. Consult the README of the example for build instructions.

Integrating the plugin

The Tabris.js website provides detailed information on how to integrate custom widgets in your Tabris.js app. To add the plugin to your app add the following entry in your apps config.xml:

<plugin name="tabris-plugin-calendar" spec="^1.0.0" />

To fetch the latest development version use the GitHub URL:

<plugin name="tabris-plugin-calendar" spec="" />


The wiget api consists of the object escalendar.Calendar with the following properties and events.


The following properties can be applied on top of the common Tabris.js properties:

  • date : number
    • The currently selected date as a unix timestamp in milliseconds
  • minDate : number
    • The minimum date as a unix timestamp in milliseconds. Defaults to January 1 1900
  • maxDate : number
    • The maximum date as a unix timestamp in milliseconds. Defaults to January 1 2100



Fired when the user selects a date in the calendar widget.

Event parameter
  • event.value: number
    • The new date as a unix timestamp in milliseconds


Compatible with Tabris.js 2.0.0

Supported platforms

  • Android

Development of the widget

While not required by the consumer or the widget, this repository provides a project folder that contains platform specific development artifacts. These artifacts allow to more easily consume the native source code when developing the native parts of the widget.


The project provides a gradle based build configuration, which also allows to import the project into Android Studio.

In order to reference the Tabris.js specific APIs, the environment variable TABRIS_ANDROID_PLATFORM has to point to the Tabris.js Android Cordova platform root directory.

export TABRIS_ANDROID_PLATFORM=/home/user/tabris-android-cordova

The environment variable is consumed in the gradle projects build.gradle file.


See LICENSE notice.

Package Sidebar


npm i tabris-plugin-calendar

Weekly Downloads





Revised BSD License (3-clause license)

Last publish


  • sgraband
  • model-compare-bot
  • tbuschto
  • sdirix
  • mkoegel
  • tabrisjs
  • moritzpost
  • eclipsesourceadmin
  • theia-tree-editor-bot
  • tortmayr
  • eugenneufeld
  • jfaltermeier