-
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.
docs(datepicker): decompose Basic demo (remove presetting dates for d… (
#3673) * docs(datepicker): decompose Basic demo (remove presetting dates for datepicker and daterangepicker) * docs(datepicker): decompose Basic demo * docs(datepicker): decompose Basic demo
- Loading branch information
Showing
7 changed files
with
57 additions
and
25 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
15 changes: 15 additions & 0 deletions
15
demo/src/app/components/+datepicker/demos/basic/basic.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,15 @@ | ||
<div class="row"> | ||
<div class="col-xs-12 col-12 col-md-4 form-group"> | ||
<input type="text" | ||
placeholder="Datepicker" | ||
class="form-control" | ||
bsDatepicker> | ||
</div> | ||
<div class="col-xs-12 col-12 col-md-4 form-group"> | ||
<input type="text" | ||
placeholder="Daterangepicker" | ||
class="form-control" | ||
bsDaterangepicker> | ||
</div> | ||
</div> | ||
|
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,7 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-datepicker-basic', | ||
templateUrl: './basic.html' | ||
}) | ||
export class DemoDatepickerBasicComponent {} |
13 changes: 0 additions & 13 deletions
13
demo/src/app/components/+datepicker/demos/bs-popup/date-picker-popup.ts
This file was deleted.
Oops, something went wrong.
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
15 changes: 15 additions & 0 deletions
15
demo/src/app/components/+datepicker/demos/date-initial-state/date-initial-state.ts
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,15 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'demo-datepicker-date-initial-state', | ||
templateUrl: './date-initial-state.html' | ||
}) | ||
export class DemoDatepickerDateInitialStateComponent { | ||
bsValue = new Date(); | ||
bsRangeValue: Date[]; | ||
maxDate = new Date(); | ||
constructor() { | ||
this.maxDate.setDate(this.maxDate.getDate() + 7); | ||
this.bsRangeValue = [this.bsValue, this.maxDate]; | ||
} | ||
} |
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