Home

Awesome

ng-flat-jalaali-datepicker

Lightweight Angular.js datepicker directive built with Moment.js for jalaali Calendar.

ng-flat-jalaali-datepicker screenshot

Demo

See demo

Features

Requirements

Installation

  1. npm install --save ng-jalali-flat-datepicker
  2. Link /dist/ng-flat-jalaali-datepicker.jsand /dist/ng-flat-jalaali-datepicker.css
  3. Add the module 'ngJalaliFlatDatepicker' as dependency of your angular module.

Usage

This is an attribute only directive.

<input type="text" ng-model="date" ng-flat-jalaali-datepicker>
<button ng-model="date" ng-flat-jalaali-datepicker>Pick a date</button>

Options

Attributes:

<input type="text" ng-model="date" datepicker-config="yourCustomConf" gregorian-formatted-picked-date="gfdate" gregorian-picked-date="gdate"  ng-flat-jalaali-datepicker>Pick a date</button>
picked date is {{gfdate}}

Config object properties:

Locale

Default locale is Farsi/Persian but you can load any locale of your choice (Angular and Moment), the datepicker use the currents locales. for persian translation of this document see [README.fa.md] (README.fa.md)

Contributions

Just go to the project directory and:

  1. Install the dev dependencies: npm install
  2. then start watch task: gulp watch

Credits