Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
<div class="modal-body">
<p>{{dialogBody}}</p>
<div class="text-center">
- <input class="form-control" [(ngModel)]="promptValue"/>
+ <input type="{{promptType}}" class="form-control"
+ [attr.min]="promptType == 'number' ? promptMin : ''"
+ [attr.max]="promptType == 'number' ? promptMax : ''"
+ [(ngModel)]="promptValue"/>
</div>
</div>
<div class="modal-footer">
@Input() public dialogBody: string;
// Value to return to the caller
@Input() public promptValue: string;
+ // 'password', etc.
+ @Input() promptType = 'text';
+
+ // May be used when promptType == 'number'
+ @Input() promptMin: number = null;
+ @Input() promptMax: number = null;
}