Have ideas to improve npm?Join in the discussion! »

    riot-date-picker

    1.1.1 • Public • Published

    riot-date-picker

    Date picker component for Riot.js.

    Weekday names and month names are not hard-coded. They use Date.toLocaleDateString() to get the names from the web browser.

    Options (opts)

    • value - the default value for the Date Picker (defaults to current date if not specified)
    • formatValue - the function used to format the date and display it in the <input> field
    • monthFormat - one of "numeric", "2-digit", "narrow", "short", "long". Defaults to "long". See Date.toLocaleDateString() for more information.
    • weekdayFormat - one of "long", "short", or "narrow". Defaults to "short".
    • prevButton - defaults to "◀"
    • nextButton - defaults to "▶"

    Compatibility

    Uses arrow functions, so it is not IE compatible. Try using babel if you need this working for IE 11.

    Keywords

    none

    Install

    npm i riot-date-picker

    DownloadsWeekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • avatar