mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
revert the changes (#14119)
This commit is contained in:
@@ -86,9 +86,17 @@ export abstract class ComponentBase<TPropertyBag extends azdata.ComponentPropert
|
|||||||
public refreshDataProvider(item: any): void {
|
public refreshDataProvider(item: any): void {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public updateStyles(): void {
|
||||||
|
const element = (<HTMLElement>this._el.nativeElement);
|
||||||
|
for (const style in this.CSSStyles) {
|
||||||
|
element.style[style] = this.CSSStyles[style];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public setProperties(properties: { [key: string]: any; }): void {
|
public setProperties(properties: { [key: string]: any; }): void {
|
||||||
properties = properties || {};
|
properties = properties || {};
|
||||||
this.properties = properties;
|
this.properties = properties;
|
||||||
|
this.updateStyles();
|
||||||
this.layout();
|
this.layout();
|
||||||
this.validate().catch(onUnexpectedError);
|
this.validate().catch(onUnexpectedError);
|
||||||
}
|
}
|
||||||
@@ -97,6 +105,7 @@ export abstract class ComponentBase<TPropertyBag extends azdata.ComponentPropert
|
|||||||
public updateProperty(key: string, value: any): void {
|
public updateProperty(key: string, value: any): void {
|
||||||
if (key) {
|
if (key) {
|
||||||
this.properties[key] = value;
|
this.properties[key] = value;
|
||||||
|
this.updateStyles();
|
||||||
this.layout();
|
this.layout();
|
||||||
this.validate().catch(onUnexpectedError);
|
this.validate().catch(onUnexpectedError);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user