mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-18 09:35:39 -05:00
Genericify components (#12158)
* Genericify components * Fix compile issue * Fix feedback * Genericify azdata components (#12164) * azdata generics * Add the withProps method to azdata proposed as there may be mistakes with the interfaces in the generics * Fix build issues because of other extensions * Remove extra spaces
This commit is contained in:
@@ -36,7 +36,7 @@ import { IComponent, IComponentDescriptor, IModelStore } from 'sql/platform/dash
|
||||
</div>
|
||||
`
|
||||
})
|
||||
export default class GroupContainer extends ContainerBase<GroupLayout> implements IComponent, OnDestroy, AfterViewInit {
|
||||
export default class GroupContainer extends ContainerBase<GroupLayout, GroupContainerProperties> implements IComponent, OnDestroy, AfterViewInit {
|
||||
@Input() descriptor: IComponentDescriptor;
|
||||
@Input() modelStore: IModelStore;
|
||||
|
||||
@@ -88,11 +88,11 @@ export default class GroupContainer extends ContainerBase<GroupLayout> implement
|
||||
}
|
||||
|
||||
public set collapsed(newValue: boolean) {
|
||||
this.setPropertyFromUI<GroupContainerProperties, boolean>((properties, value) => { properties.collapsed = value; }, newValue);
|
||||
this.setPropertyFromUI<boolean>((properties, value) => { properties.collapsed = value; }, newValue);
|
||||
}
|
||||
|
||||
public get collapsed(): boolean {
|
||||
return this.getPropertyOrDefault<GroupContainerProperties, boolean>((props) => props.collapsed, false);
|
||||
return this.getPropertyOrDefault<boolean>((props) => props.collapsed, false);
|
||||
}
|
||||
|
||||
private hasHeader(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user