Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
Merge pull request #15 from thion/master
Browse files Browse the repository at this point in the history
Not-ranged simple datepicker
  • Loading branch information
teamon committed Mar 20, 2014
2 parents 3207216 + e528db7 commit a4839ed
Show file tree
Hide file tree
Showing 9 changed files with 148 additions and 56 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,15 @@ $scope.dates = moment().range("2012-11-05", "2013-01-25")

## Customizations

### Simple date picker

You can also select only one date:

```html
<!-- use 'date-range-picker' directive in view -->
<input type="text" date-range-picker ranged="false"/>
```

### Select range options

```js
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-date-range-picker",
"version": "0.3.4",
"version": "0.4",
"authors": [
"Tymon Tobolski <[email protected]>",
"Krzysztof Jung <[email protected]>"
Expand Down
9 changes: 6 additions & 3 deletions build/angular-date-range-picker.css
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@
position: absolute;
top: 30px;
left: -1px;
width: 700px;
overflow: hidden;
height: 183px;
background: #fff;
z-index: 1000;
border: 1px solid #ccc;
Expand All @@ -136,6 +134,11 @@
box-sizing: content-box;
}

.angular-date-range-picker--ranged {
width: 700px;
height: 183px;
}

.angular-date-range-picker__calendar-day:hover {
background: #000;
color: #fff;
Expand Down Expand Up @@ -169,7 +172,7 @@
cursor: pointer;
}

.angular-date-range-picker__buttons {
.angular-date-range-picker--ranged .angular-date-range-picker__buttons {
position: absolute;
bottom: 10px;
}
Expand Down
62 changes: 46 additions & 16 deletions build/angular-date-range-picker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a4839ed

Please sign in to comment.