Separator component (#9310)

* Separator component
This commit is contained in:
Amir Omidi
2020-02-24 16:53:42 -08:00
committed by GitHub
parent d7ea1123ef
commit 628fd8d74d
9 changed files with 100 additions and 3 deletions

View File

@@ -163,6 +163,13 @@ class ModelBuilderImpl implements azdata.ModelBuilder {
return builder;
}
separator(): azdata.ComponentBuilder<azdata.SeparatorComponent> {
let id = this.getNextComponentId();
let builder: ComponentBuilderImpl<azdata.SeparatorComponent> = this.getComponentBuilder(new SeparatorWrapper(this._proxy, this._handle, id), id);
this._componentBuilders.set(id, builder);
return builder;
}
dropDown(): azdata.ComponentBuilder<azdata.DropDownComponent> {
let id = this.getNextComponentId();
let builder: ComponentBuilderImpl<azdata.DropDownComponent> = this.getComponentBuilder(new DropDownWrapper(this._proxy, this._handle, id), id);
@@ -1534,6 +1541,12 @@ class FileBrowserTreeComponentWrapper extends ComponentWrapper implements azdata
}
}
class SeparatorWrapper extends ComponentWrapper implements azdata.SeparatorComponent {
constructor(proxy: MainThreadModelViewShape, handle: number, id: string) {
super(proxy, handle, ModelComponentTypes.Separator, id);
}
}
class DivContainerWrapper extends ComponentWrapper implements azdata.DivContainer {
constructor(proxy: MainThreadModelViewShape, handle: number, type: ModelComponentTypes, id: string) {
super(proxy, handle, type, id);