added Declarative table to model view controls (#1593)

* added Declarative table to model view controls
This commit is contained in:
Leila Lali
2018-06-11 12:40:17 -07:00
committed by GitHub
parent 3be0c5130a
commit 4609694141
12 changed files with 380 additions and 1 deletions

View File

@@ -30,6 +30,7 @@ export class InputBox extends AngularDisposable implements OnInit, OnChanges {
@Input() type: string;
@Input() placeholder: string;
@Input() ariaLabel: string;
@Input() value: string;
@Output() onDidChange = new EventEmitter<string | number>();
@@ -49,6 +50,9 @@ export class InputBox extends AngularDisposable implements OnInit, OnChanges {
placeholder: this.placeholder,
ariaLabel: this.ariaLabel
});
if (this.value) {
this._inputbox.value = this.value;
}
this._inputbox.onDidChange(e => {
switch (this.type) {
case 'number':