added option to mode view input box to create the input as text area (#1630)

* added option to create input as multi line

* added min and max for input box
This commit is contained in:
Leila Lali
2018-06-13 16:32:34 -07:00
committed by GitHub
parent df18359309
commit 30b111034d
5 changed files with 190 additions and 43 deletions

View File

@@ -67,6 +67,14 @@ export class InputBox extends vsInputBox {
this.applyStyles();
}
public set rows(value: number) {
this.inputElement.setAttribute('rows', value.toString());
}
public set columns(value: number) {
this.inputElement.setAttribute('cols', value.toString());
}
public disable(): void {
super.disable();
this.inputBackground = this.disabledInputBackground;
@@ -75,6 +83,10 @@ export class InputBox extends vsInputBox {
this.applyStyles();
}
public setHeight(value: string) {
this.inputElement.style.height = value;
}
public isEnabled(): boolean {
return !this.inputElement.hasAttribute('disabled');
}