Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Allow to set default date format
Browse files Browse the repository at this point in the history
  • Loading branch information
fracz committed Jan 11, 2016
1 parent 408b1fb commit 12e86c8
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Original changes by [@mpasko](https://github.com/mpasko/angular-datepicker).
* Picker height is independent of width, Picker width is bound up to reasonable value.
* Startup date is initialized with existing date on input control
* Changed colors to mimic bootstrap
* Allow to set default date format via `datepickerConfigProvider.defaultDateFormat`


[![Join the chat at https://gitter.im/720kb/angular-datepicker](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/720kb/angular-datepicker?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down Expand Up @@ -129,7 +130,7 @@ You can set the titles for the month and year selectors with the **date-year-tit
<datepicker date-year-title="selected title">
<input ng-model="date"/>
</datepicker>

####Custom buttons
You can customize the calendar navigation buttons content, let's make an example while using [FontAwesome](http://fontawesome.io)

Expand All @@ -149,7 +150,7 @@ You can also set the titles for the left and right arrows with **button-next-tit
</datepicker>

####Input as grandchild
Sometimes you cannot put date input as a first child of datepicker. In this case you may use `selector=""` to point to the CSS class of the input. Below example with using Twitter Bootstrap and FontAwesome
Sometimes you cannot put date input as a first child of datepicker. In this case you may use `selector=""` to point to the CSS class of the input. Below example with using Twitter Bootstrap and FontAwesome

```html
<datepicker date-format="yyyy-MM-dd" selector="form-control">
Expand Down
Loading

0 comments on commit 12e86c8

Please sign in to comment.