Skip to content

Commit

Permalink
chore(datetime): Address comments #1823
Browse files Browse the repository at this point in the history
  • Loading branch information
IvayloG committed Apr 22, 2020
1 parent 015c1d1 commit b5e70c1
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions en/components/date_time_editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public maxDate = new Date(2020, 12, 1);

```html
<igx-input-group>
<input type="text" igxInput igxDateTimeEditor [minValue]="minDate" [maxValue]="maxDate" [(ngModel)]="date" required/>
<input type="text" igxInput igxDateTimeEditor [minValue]="minDate" [maxValue]="maxDate" [(ngModel)]="date"/>
</igx-input-group>

```
Expand All @@ -129,20 +129,9 @@ Template-driven form example:
```html
<form>
<igx-input-group>
<input #dateEditor="igxDateTimeEditor" type="text" [(ngModel)]="date" #formControl="ngModel" name="form"
igxInput (valueChanged)="onValueChanged($event)" (validationFailed)="onValidationFailed($event)"
[igxDateTimeEditor]="'dd/MM/yyyy'" [minValue]="minDate" [maxValue]="maxDate" required
[isSpinLoop]="false" />
<igx-suffix>
<button igxRipple igxRippleCentered="true" igxButton="icon" (click)="dateEditor.increment()">
<igx-icon>expand_less</igx-icon>
</button>
</igx-suffix>
<igx-suffix>
<button igxRipple igxRippleCentered="true" igxButton="icon" (click)="dateEditor.decrement()">
<igx-icon>expand_more</igx-icon>
</button>
</igx-suffix>
<input igxInput type="text" [(ngModel)]="date" name="form" required
(valueChanged)="onValueChanged($event)" (validationFailed)="onValidationFailed($event)"
[igxDateTimeEditor]="'dd/MM/yyyy'" [minValue]="minDate" [maxValue]="maxDate" [isSpinLoop]="false" />
</igx-input-group>
</form>
<div class="divider--half"></div>
Expand Down

0 comments on commit b5e70c1

Please sign in to comment.