Skip to content

Commit 052b6a8

Browse files
committed
closing 367
1 parent 42f15b1 commit 052b6a8

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ All notable changes to this project will be documented in this file.
44
<a name="2.8.0"></a>
55
# [2.8.0] (???)
66
### Features
7+
- Add `data-date` attribute to each date button ([???](https://github.com/vlio20/angular-datepicker/commit/???)) closes [#367](https://github.com/vlio20/angular-datepicker/issues/367)
78
- Show/Hide the picker popup after click outside of the component `hideOnOutsideClick` ([???](https://github.com/vlio20/angular-datepicker/commit/???)) closes [#362](https://github.com/vlio20/angular-datepicker/issues/362)
89

910
<a name="2.7.5"></a>

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ This is a configurable date-picker build for Angular2 applications and uses Mome
88

99
## Screenshots
1010

11-
### DayTime:
11+
### Day:
1212
![Imgur](https://i.imgur.com/NaOiqi7.png)
1313

14-
### Day:
14+
### DayTime:
1515
![Imgur](https://i.imgur.com/XSyhhfv.png)
1616

1717
### Month:

src/app/day-calendar/day-calendar.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<button type="button"
2929
class="dp-calendar-day"
3030
*ngFor="let day of week"
31+
[attr.data-date]="day.date.format(componentConfig.format)"
3132
(click)="dayClicked(day)"
3233
[disabled]="day.disabled"
3334
[ngClass]="getDayBtnCssClass(day)"

src/app/month-calendar/month-calendar.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<button type="button"
2222
class="dp-calendar-month"
2323
*ngFor="let month of monthRow"
24+
[attr.data-date]="month.date.format(componentConfig.format)"
2425
[disabled]="month.disabled"
2526
[ngClass]="getMonthBtnCssClass(month)"
2627
(click)="monthClicked(month)"

0 commit comments

Comments
 (0)