mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-31 06:41:35 +00:00
Now that Tabs are being rendered via Tabs.tsx the knockout component names are not needed either.
24 lines
867 B
TypeScript
24 lines
867 B
TypeScript
import { SchemaAnalyzerComponentAdapter } from "../Notebook/SchemaAnalyzerComponent/SchemaAnalyzerComponentAdapter";
|
|
import NotebookTabBase, { NotebookTabBaseOptions } from "./NotebookTabBase";
|
|
|
|
export default class SchemaAnalyzerTab extends NotebookTabBase {
|
|
public readonly html = '<div data-bind="react:schemaAnalyzerComponentAdapter" style="height: 100%"></div>';
|
|
private schemaAnalyzerComponentAdapter: SchemaAnalyzerComponentAdapter;
|
|
|
|
constructor(options: NotebookTabBaseOptions) {
|
|
super(options);
|
|
this.schemaAnalyzerComponentAdapter = new SchemaAnalyzerComponentAdapter(
|
|
{
|
|
contentRef: undefined,
|
|
notebookClient: NotebookTabBase.clientManager,
|
|
},
|
|
options.collection?.databaseId,
|
|
options.collection?.id()
|
|
);
|
|
}
|
|
|
|
protected buildCommandBarOptions(): void {
|
|
this.updateNavbarWithTabsButtons();
|
|
}
|
|
}
|