Signed-off-by: Tiffany Little <tlittle@georgialibraries.org>
</ng-container>
</ng-container>
+<div class="input-group">
+<ng-container *ngIf="labelText">
+<div class="input-group-prepend">
+ <span class="input-group-text">{{labelText}}</span>
+ </div>
+</ng-container>
<ng-container *ngIf="!readOnly">
- <div class="d-flex">
+ <span class="d-flex">
<input type="text"
class="form-control"
[id]="domId"
<span class="material-icons">keyboard_arrow_up</span>
<span class="material-icons">keyboard_arrow_down</span>
</div>
- </div>
+ </span>
</ng-container>
+</div>
// Applies a name attribute to the input.
// Useful in forms.
+ @Input() labelText = '';
+
@Input() name: string;
// Placeholder text for selector input