Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
.eg-date-select {
+}
+
+.date-select-width {
max-width: 11em;
}
+
.material-icons {
font-size: 15px;
}
{{initialDate | formatValue:'timestamp'}}
</ng-container>
<ng-container *ngIf="!readOnly">
- <div class="input-group eg-date-select form-validated">
+ <div class="input-group eg-date-select form-validated"
+ [ngClass]="{'date-select-width': !noMaxWidth}">
<input
class="form-control"
type="text"
@Input() disabled: boolean;
@Input() readOnly: boolean;
+ // Sometimes it's helpful to allow the date selector to expand
+ // to fill its container for visual consistency with other inputs.
+ @Input() noMaxWidth = false;
+
current: NgbDateStruct;
@Output() onChangeAsDate: EventEmitter<Date>;