mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-17 09:35:37 -05:00
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:
@@ -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');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user