JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 24
  • Score
    100M100P100Q54127F
  • License MIT

Package Exports

  • d-share

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (d-share) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

d-datepicker

Datepicker component for derby.js.

  1. Datepicker tied to a standard form input field.

    "Screenshot of datepicker component"

  2. Inline datepicker.

    "Screenshot of datepicker component"

  3. Localized datepicker.

    "Screenshot of datepicker component"

Please note that this project is inspired by Bootstrap-datepicker, and makes use of a css-file from that project.

Format

Dates set by datepicker will be in the format YYYY-MM-DD (2014-04-16).

TODO

  1. Use personalized formats for dates.

Example usage

First of make sure to install d-datepicker through npm npm install d-datepicker.

Including

app.use(require('d-datepicker'));
    

In template

<Body:>
  <!-- datepicker tied to a standard form input field -->
  <datepicker active="{{post.date}}"></datepicker>

  <!-- inline datepicker -->
  <datepicker active="{{post.date}}" inline></datepicker>

  <!-- localized datepicker -->
  <datepicker active="{{post.date}}" inline lang="fr"></datepicker>
  

Retrieve data

var pickedDate = model.get('post.date');