<commit_before># Ember-material-design-datepicker

[![Build Status](https://travis-ci.org/angliafarmers/ember-material-design-datepicker.svg?branch=master)](https://travis-ci.org/angliafarmers/ember-material-design-datepicker)
[![Code Climate](https://codeclimate.com/github/angliafarmers/ember-material-design-datepicker/badges/gpa.svg)](https://codeclimate.com/github/angliafarmers/ember-material-design-datepicker)

This project aims to bring an easy to use [Material Design](https://www.google.com/design/spec/material-design/introduction.html) themed datepicker to Ember.

## Installation

Install the ember-cli addon in your ember-cli project:

```
$ ember install ember-material-design-datepicker
```
This should also automatically create an scss file under `app/styles/app.scss` with `@import 'ember-material-design-datepicker';` and install `ember-cli-sass`.

Sass is required for this addon. There are a number of sass variables that can easily be overidden to change the default styling of Ember-material-design-datepicker, these are detailed in usage below.

## Usage

### Options
 * selectedDate (optional) - The date that should currently be selected
 * dateChanged (required) - When the user selects a new date, or edits the date's text, this action is fired with the new date as the first argument. If the date is deemed invalid then 'null' is sent. The second argument is a bool indicating whether the date was entered was valid or not. In most circumstances your application should consume this action and update ```selectedDate```.<commit_msg>Moved required option to the top of the Options section in the readme<commit_after># Ember-material-design-datepicker

[![Build Status](https://travis-ci.org/angliafarmers/ember-material-design-datepicker.svg?branch=master)](https://travis-ci.org/angliafarmers/ember-material-design-datepicker)
[![Code Climate](https://codeclimate.com/github/angliafarmers/ember-material-design-datepicker/badges/gpa.svg)](https://codeclimate.com/github/angliafarmers/ember-material-design-datepicker)

This project aims to bring an easy to use [Material Design](https://www.google.com/design/spec/material-design/introduction.html) themed datepicker to Ember.

## Installation

Install the ember-cli addon in your ember-cli project:

```
$ ember install ember-material-design-datepicker
```
This should also automatically create an scss file under `app/styles/app.scss` with `@import 'ember-material-design-datepicker';` and install `ember-cli-sass`.

Sass is required for this addon. There are a number of sass variables that can easily be overidden to change the default styling of Ember-material-design-datepicker, these are detailed in usage below.

## Usage

### Options
 * dateChanged (required) - When the user selects a new date, or edits the date's text, this action is fired with the new date as the first argument. If the date is deemed invalid then 'null' is sent. The second argument is a bool indicating whether the date was entered was valid or not. In most circumstances your application should consume this action and update ```selectedDate```.
 * selectedDate (optional) - The date that should currently be selected
{'fraction_non_alphanumeric': 0.09748427672955975, 'fraction_numerical': 0.0, 'mean_word_length': 5.129094412331407, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 10, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6213197', 'n_tokens_mistral': 891, 'n_tokens_neox': 859, 'n_words': 321}