-
Notifications
You must be signed in to change notification settings - Fork 13
/
date-picker-inline.html
39 lines (32 loc) · 1.66 KB
/
date-picker-inline.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
36
37
38
<div>
<div>
<label>
<span>Date range:</span>
<input style="cursor: pointer" type="checkbox" (change)="onDateRange($event.currentTarget.checked)" [checked]="false">
</label>
</div>
<div>
<input angular-mydatepicker class="datePicker" type="hidden" [(ngModel)]="model" [options]="myDatePickerOptions"
(dateChanged)="onDateChanged($event)" (calendarViewChanged)="onCalendarViewChanged($event)"
(rangeDateSelection)="onDateRangeSelection($event)" #dp="angular-mydatepicker"/>
</div>
<div>
<button type="button" class="submitButton" (click)="onSubmit()">Submit</button>
<button type="button" class="submitButton" (click)="dp.clearDate()">Clear</button>
<button type="button" class="submitButton" (click)="onDisableUntilYesterday()">Disable until yesterday</button>
</div>
<div>
<button *ngIf="myDatePickerOptions.dateRange" type="button" class="submitButton" (click)="onTodayPlus3()">Range today + 3</button>
<button *ngIf="myDatePickerOptions.dateRange" type="button" class="submitButton" (click)="onYesterdayPlus3()">Range yesterday + 3</button>
</div>
<div>
<button type="button" class="submitButton" (click)="onInitToPastMonth()">Init to past month</button>
</div>
<div>
<!-- header action method calls -->
<button type="button" class="headerActionButton" (click)="dp.headerAction(1)">Prev</button>
<button type="button" class="headerActionButton" (click)="dp.headerAction(2)">Next</button>
<button type="button" class="headerActionButton" (click)="dp.headerAction(3)">Month</button>
<button type="button" class="headerActionButton" (click)="dp.headerAction(4)">Year</button>
</div>
</div>