mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 03:28:33 -05:00
modelview dashboard (#9784)
* modelview dashboard * styles * toolbar support * spaces * add tab icon support
This commit is contained in:
34
src/sql/azdata.proposed.d.ts
vendored
34
src/sql/azdata.proposed.d.ts
vendored
@@ -225,6 +225,7 @@ declare module 'azdata' {
|
||||
*/
|
||||
export interface TabbedPanelLayout {
|
||||
orientation: TabOrientation;
|
||||
showIcon: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -245,6 +246,11 @@ declare module 'azdata' {
|
||||
* Id of the tab
|
||||
*/
|
||||
id: string;
|
||||
|
||||
/**
|
||||
* Icon of the tab
|
||||
*/
|
||||
icon?: string | vscode.Uri | { light: string | vscode.Uri; dark: string | vscode.Uri };
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -287,5 +293,33 @@ declare module 'azdata' {
|
||||
*/
|
||||
export const onDidChangeActiveNotebookEditor: vscode.Event<NotebookEditor>;
|
||||
}
|
||||
|
||||
export namespace window {
|
||||
export interface ModelViewDashboard {
|
||||
registerTabs(handler: (view: ModelView) => Thenable<(DashboardTab | DashboardTabGroup)[]>): void;
|
||||
open(): Thenable<void>;
|
||||
}
|
||||
|
||||
export function createModelViewDashboard(title: string): ModelViewDashboard;
|
||||
}
|
||||
|
||||
export interface DashboardTab extends Tab {
|
||||
/**
|
||||
* Toolbar of the tab, optional.
|
||||
*/
|
||||
toolbar?: ToolbarContainer;
|
||||
}
|
||||
|
||||
export interface DashboardTabGroup {
|
||||
/**
|
||||
* * Title of the tab group
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* children of the tab group
|
||||
*/
|
||||
tabs: DashboardTab[];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user