mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-24 17:23:05 -05:00
added group container (#1508)
This commit is contained in:
@@ -105,6 +105,12 @@ export abstract class ComponentBase extends Disposable implements IComponent, On
|
||||
return <boolean>enabled;
|
||||
}
|
||||
|
||||
public set enabled(value: boolean) {
|
||||
let properties = this.getProperties();
|
||||
properties['enabled'] = value;
|
||||
this.setProperties(properties);
|
||||
}
|
||||
|
||||
public get valid(): boolean {
|
||||
return this._valid;
|
||||
}
|
||||
@@ -173,5 +179,15 @@ export abstract class ContainerBase<T> extends ComponentBase {
|
||||
this._changeRef.detectChanges();
|
||||
}
|
||||
|
||||
public setProperties(properties: { [key: string]: any; }): void {
|
||||
super.setProperties(properties);
|
||||
this.items.forEach(item => {
|
||||
let component = this.modelStore.getComponent(item.descriptor.id);
|
||||
if (component) {
|
||||
component.enabled = this.enabled;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
abstract setLayout(layout: any): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user