forked from technikhil314/angular-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
calendar-component.html
35 lines (35 loc) · 1013 Bytes
/
calendar-component.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<div class="col-md-12 text-center flush">
<div class="col-md-2 flush">
<span class="col-md-12 flush clickable clickable-link" (click)="monthSelected(-1)">
Prev
</span>
</div>
<span class="col-md-8 float-left text-center nudge-top">
<label> {{monthText}} {{year}} </label>
</span>
<div class="col-md-2 flush">
<span class="col-md-12 pull-right flush clickable clickable-link" (click)="monthSelected(1)">
Next
</span>
</div>
</div>
<div class="col-md-12 flush">
<table class="table table-condensed flush">
<thead>
<th>Su</th>
<th>Mo</th>
<th>Tu</th>
<th>We</th>
<th>Th</th>
<th>Fr</th>
<th>Sa</th>
</thead>
<tbody>
<tr *ngFor="let week of weekList; let i = index">
<td *ngFor="let day of weekList[i]" (click)="dateSelected(day)" class="clickable" [ngClass]= "{'off':!isDateAvailable(day),'active':isSelectedDate(day),'disabled':isDisabled(day)}">
{{ day.format('D') }}
</td>
</tr>
</tbody>
</table>
</div>