PikadayScope Class, Scope

A drilling scope for manipulating Pikaday objects.

  • Pikaday MUST be initialized with an <input /> control for this to work.
  • A ref to the Pikaday object must be registered before attempting to morph into this scope. See the README if you haven't.

Constructor

PikadayScope

Instance Methods

    chooseDay(dayIndex: Number) -> PikadayScope

    Select a day in the Pikaday picker.

    Parameters (1)

    dayIndex
    Number

    Index of the month day, 0-31.

    chooseMonth(monthIndex: Number) -> PikadayScope

    Select a month in the Pikaday picker.

    Parameters (1)

    monthIndex
    Number

    Index of the month starting from 1 through 12.

    chooseYear(year: Number) -> PikadayScope

    Select a year in the Pikaday picker.

    close() -> PikadayScope

    Close an open Pikaday dialog.

    isOpen() -> Boolean

    Whether the picker is open (as reported by pikaday, not the UI.)

    open() -> PikadayScope

    Open the Pikaday dialog. You must do this if you want to choose the day!

    queryDisplayDate() -> String

    Return Value

    String

    The current date that is displayed to the user in the input control.

    writeDate(dateString: String) -> PikadayScope

    Fill in a date not through the date picker but through the input box.

    Parameters (1)

    dateString
    String

    Something like "3/24/1979" or "11-1-1999".