mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
add toggle button for properties container (#16335)
This commit is contained in:
@@ -47,6 +47,7 @@ export default class PropertiesContainerComponent extends ComponentBase<azdata.P
|
||||
public override setProperties(properties: { [key: string]: any; }): void {
|
||||
super.setProperties(properties);
|
||||
this._propertiesContainer.propertyItems = this.propertyItems;
|
||||
this._propertiesContainer.showToggleButton = this.showToggleButton;
|
||||
}
|
||||
|
||||
public get propertyItems(): PropertyItem[] {
|
||||
@@ -57,6 +58,10 @@ export default class PropertiesContainerComponent extends ComponentBase<azdata.P
|
||||
this.setPropertyFromUI<azdata.PropertiesContainerItem[]>((props, value) => props.propertyItems = value, newValue);
|
||||
this._propertiesContainer.propertyItems = newValue;
|
||||
}
|
||||
|
||||
public get showToggleButton(): boolean {
|
||||
return this.getPropertyOrDefault<boolean>((props) => props.showToggleButton, false);
|
||||
}
|
||||
}
|
||||
|
||||
registerThemingParticipant((theme: IColorTheme, collector: ICssStyleCollector) => {
|
||||
|
||||
Reference in New Issue
Block a user