Home Reference Source
import {Calendar} from 'infamous/src/legacy/Calendar.js'
public class | source

Calendar

Extends:

* → Calendar

A calendar widget for selecting a date (WIP).

Constructor Summary

Public Constructor
public

constructor(calendarSize: Array, transition: String)

Create a new Calendar with the given Famo.us-style size array and transition.

Member Summary

Public Members
public
public
public

planes: *[]

public
public

transitions: {"flipDiagonal": *}

Method Summary

Private Methods
private

Creates the grid used for the layout of the day cells.

private

Set up this.transitions, containing the available month-to-month transitions.

Public Constructors

public constructor(calendarSize: Array, transition: String) source

Create a new Calendar with the given Famo.us-style size array and transition. The transition is the type of animation used when switching between months.

Params:

NameTypeAttributeDescription
calendarSize Array

A Famo.us-style width/height size array.

transition String

The name of the animation transition to use when switching months.

Public Members

public columnsRows: number[] source

public flipSide: number source

public planes: *[] source

public transition: * source

public transitions: {"flipDiagonal": *} source

Private Methods

private _createGrid() source

Creates the grid used for the layout of the day cells.

private _initializeTransitions() source

Set up this.transitions, containing the available month-to-month transitions.