-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2562 from valor-software/feat-datepicker-forms
feat(datepicker): added forms support
- Loading branch information
Showing
38 changed files
with
1,020 additions
and
245 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 11 additions & 11 deletions
22
demo/src/app/components/+datepicker/demos/bs-popup/date-picker-popup.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<pre>{{bsValue}}</pre> | ||
<input type="text" | ||
value="{{ bsValue | date:'yMd'}}" | ||
[minDate]="minDate" | ||
[maxDate]="maxDate" | ||
#dp="bsDatepicker" | ||
bsDatepicker [(bsValue)]="bsValue"> | ||
<span style="display: inline-block"> | ||
<button class="btn btn-success" (click)="dp.toggle()">Date Picker popup</button> | ||
</span> | ||
<input type="text" | ||
[minDate]="minDate" | ||
[maxDate]="maxDate" | ||
[(ngModel)]="bsValue" | ||
bsDatepicker> | ||
<button class="btn btn-success" (click)="dp.toggle()">Date Picker popup</button> | ||
|
||
<br> | ||
<br> | ||
|
||
<pre>{{bsRangeValue}}</pre> | ||
<input type="text" | ||
value="{{ bsRangeValue[0] | date:'yMd'}} - {{ bsRangeValue[1] | date:'yMd'}}" | ||
#drp="bsDaterangepicker" | ||
bsDaterangepicker [(bsValue)]="bsRangeValue"> | ||
<span style="display: inline-block"> | ||
<button class="btn btn-success" (click)="drp.toggle()">Date Range Picker popup</button> | ||
</span> | ||
<pre>{{ bsRangeValue[0] | date:'yMd'}} - {{ bsRangeValue[1] | date:'yMd'}}</pre> | ||
<input #drp="bsDaterangepicker" bsDaterangepicker [(bsValue)]="bsRangeValue"> | ||
<input bsDaterangepicker [(ngModel)]="bsRangeValue"> | ||
<input [(ngModel)]="bsRangeValue"> | ||
<button class="btn btn-success" (click)="drp.toggle()">Date Range Picker popup</button> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
demo/src/app/components/+datepicker/demos/disabled/disabled.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div class="row"> | ||
<div class="col-sm-3"> | ||
<div class="form-group"> | ||
<input class="form-control" placeholder="Datepicker" bsDatepicker #dp="bsDatepicker"> | ||
</div> | ||
</div> | ||
<div class="col-sm-3"> | ||
<div class="form-group"> | ||
<input class="form-control" placeholder="Daterangepicker" bsDaterangepicker #dpr="bsDaterangepicker"> | ||
</div> | ||
</div> | ||
</div> | ||
|
Oops, something went wrong.