mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
added 'fireOnTextChange' field to azdata.proposed.d.ts (#4341)
This commit is contained in:
1
src/sql/azdata.proposed.d.ts
vendored
1
src/sql/azdata.proposed.d.ts
vendored
@@ -2940,6 +2940,7 @@ declare module 'azdata' {
|
|||||||
value?: string | CategoryValue;
|
value?: string | CategoryValue;
|
||||||
values?: string[] | CategoryValue[];
|
values?: string[] | CategoryValue[];
|
||||||
editable?: boolean;
|
editable?: boolean;
|
||||||
|
fireOnTextChange?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeclarativeTableColumn {
|
export interface DeclarativeTableColumn {
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export default class DropDownComponent extends ComponentBase implements ICompone
|
|||||||
this._editableDropdown.value = this.getSelectedValue();
|
this._editableDropdown.value = this.getSelectedValue();
|
||||||
}
|
}
|
||||||
this._editableDropdown.enabled = this.enabled;
|
this._editableDropdown.enabled = this.enabled;
|
||||||
this._editableDropdown.fireOnTextChange = properties['fireOnTextChange'];
|
this._editableDropdown.fireOnTextChange = this.fireOnTextChange;
|
||||||
} else {
|
} else {
|
||||||
this._selectBox.setOptions(this.getValues());
|
this._selectBox.setOptions(this.getValues());
|
||||||
this._selectBox.selectWithOptionName(this.getSelectedValue());
|
this._selectBox.selectWithOptionName(this.getSelectedValue());
|
||||||
@@ -171,6 +171,10 @@ export default class DropDownComponent extends ComponentBase implements ICompone
|
|||||||
return this.getPropertyOrDefault<azdata.DropDownProperties, boolean>((props) => props.editable, false);
|
return this.getPropertyOrDefault<azdata.DropDownProperties, boolean>((props) => props.editable, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private get fireOnTextChange(): boolean {
|
||||||
|
return this.getPropertyOrDefault<azdata.DropDownProperties, boolean>((props) => props.fireOnTextChange, false);
|
||||||
|
}
|
||||||
|
|
||||||
public getEditableDisplay(): string {
|
public getEditableDisplay(): string {
|
||||||
return this.editable ? '' : 'none';
|
return this.editable ? '' : 'none';
|
||||||
}
|
}
|
||||||
|
|||||||
1
src/sql/sqlops.proposed.d.ts
vendored
1
src/sql/sqlops.proposed.d.ts
vendored
@@ -560,6 +560,7 @@ declare module 'sqlops' {
|
|||||||
value?: string | CategoryValue;
|
value?: string | CategoryValue;
|
||||||
values?: string[] | CategoryValue[];
|
values?: string[] | CategoryValue[];
|
||||||
editable?: boolean;
|
editable?: boolean;
|
||||||
|
fireOnTextChange?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface DeclarativeTableColumn {
|
export interface DeclarativeTableColumn {
|
||||||
|
|||||||
@@ -1072,6 +1072,13 @@ class DropDownWrapper extends ComponentWrapper implements azdata.DropDownCompone
|
|||||||
this.setProperty('editable', v);
|
this.setProperty('editable', v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public get fireOnTextChange(): boolean {
|
||||||
|
return this.properties['fireOnTextChange'];
|
||||||
|
}
|
||||||
|
public set fireOnTextChange(v: boolean) {
|
||||||
|
this.setProperty('fireOnTextChange', v);
|
||||||
|
}
|
||||||
|
|
||||||
public get onValueChanged(): vscode.Event<any> {
|
public get onValueChanged(): vscode.Event<any> {
|
||||||
let emitter = this._emitterMap.get(ComponentEventType.onDidChange);
|
let emitter = this._emitterMap.get(ComponentEventType.onDidChange);
|
||||||
return emitter && emitter.event;
|
return emitter && emitter.event;
|
||||||
|
|||||||
Reference in New Issue
Block a user