-
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.
feat(datepicker): use as directives (#2446)
* feat(datepicker): use as directives too * feat(datepicker): added outside click support * chore(tests): ignore some tooo smart typings * fix(datepicker): fixed outside click issues * fix(core): fixed attaching of outside click listener
- Loading branch information
Showing
17 changed files
with
195 additions
and
111 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ yarn.lock | |
npm-debug.log | ||
|
||
# ignore build and dist for now | ||
.tmp | ||
/dist | ||
/temp | ||
/demo/dist | ||
|
13 changes: 9 additions & 4 deletions
13
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,16 +1,21 @@ | ||
<pre>{{bsValue}}</pre> | ||
|
||
<input type="text" | ||
value="{{ bsValue | date:'yMd'}}" | ||
bsDatepicker [(bsValue)]="bsValue"> | ||
<span style="display: inline-block"> | ||
<button class="btn btn-success" (click)="dp.toggle()">Date Picker popup</button> | ||
<bs-datepicker #dp [(value)]="bsValue" style="display: block"></bs-datepicker> | ||
<bs-datepicker #dp [(bsValue)]="bsValue" style="display: block"></bs-datepicker> | ||
</span> | ||
|
||
<br> | ||
<br> | ||
|
||
<pre>{{bsRangeValue}}</pre> | ||
|
||
<input type="text" | ||
value="{{ bsRangeValue[0] | date:'yMd'}} - {{ bsRangeValue[1] | date:'yMd'}}" | ||
bsDaterangepicker [(bsValue)]="bsRangeValue"> | ||
<span style="display: inline-block"> | ||
<button class="btn btn-success" (click)="drp.toggle()">Date Range Picker popup</button> | ||
<bs-daterangepicker #drp [(value)]="bsRangeValue" placement="right" style="display: block"></bs-daterangepicker> | ||
<bs-daterangepicker #drp [(bsValue)]="bsRangeValue" placement="right" style="display: block"></bs-daterangepicker> | ||
</span> | ||
|
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
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
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
Oops, something went wrong.