WIP timeFrames
parent
c4214f20d4
commit
81100e51b6
@ -1 +1,25 @@
|
|||||||
<p>date-range-cell works!</p>
|
<mat-form-field *ngIf="editable || label; else stringValue">
|
||||||
|
<mat-label *ngIf="label">{{label}}</mat-label>
|
||||||
|
<mat-date-range-input [rangePicker]="picker" disabled class="date-range-input">
|
||||||
|
<input
|
||||||
|
matStartDate
|
||||||
|
placeholder="Startdatum"
|
||||||
|
[value]="from"
|
||||||
|
(dateChange)="startDateChange($event)"
|
||||||
|
/>
|
||||||
|
<input
|
||||||
|
matEndDate
|
||||||
|
placeholder="Enddatum"
|
||||||
|
[value]="to"
|
||||||
|
(dateChange)="endDateChange($event)"
|
||||||
|
/>
|
||||||
|
</mat-date-range-input>
|
||||||
|
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
|
||||||
|
<mat-date-range-picker
|
||||||
|
#picker
|
||||||
|
[disabled]="!editable"
|
||||||
|
></mat-date-range-picker>
|
||||||
|
</mat-form-field>
|
||||||
|
<ng-template #stringValue>
|
||||||
|
<div class="date-string">{{toLocaleDate(from)}} <i>bis</i> {{toLocaleDate(to)}}</div>
|
||||||
|
</ng-template>
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
.date-range-input {
|
||||||
|
min-width: 11em;
|
||||||
|
}
|
||||||
|
.date-string {
|
||||||
|
min-width: 10em;
|
||||||
|
}
|
Loading…
Reference in New Issue