mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 03:28:33 -05:00
add ability to dynamically update tabs (#9911)
* add dashboard and tabbedPanel samples * add updateTabs to tabbedPanel component * add updateTabs to tabbedPanel component
This commit is contained in:
7
src/sql/azdata.proposed.d.ts
vendored
7
src/sql/azdata.proposed.d.ts
vendored
@@ -210,6 +210,12 @@ declare module 'azdata' {
|
||||
* The event argument is the id of the selected tab.
|
||||
*/
|
||||
onTabChanged: vscode.Event<string>;
|
||||
|
||||
/**
|
||||
* update the tabs.
|
||||
* @param tabs new tabs
|
||||
*/
|
||||
updateTabs(tabs: (Tab | TabGroup)[]): void;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -310,6 +316,7 @@ declare module 'azdata' {
|
||||
export interface ModelViewDashboard {
|
||||
registerTabs(handler: (view: ModelView) => Thenable<(DashboardTab | DashboardTabGroup)[]>): void;
|
||||
open(): Thenable<void>;
|
||||
updateTabs(tabs: (DashboardTab | DashboardTabGroup)[]): void;
|
||||
}
|
||||
|
||||
export function createModelViewDashboard(title: string, options?: ModelViewDashboardOptions): ModelViewDashboard;
|
||||
|
||||
Reference in New Issue
Block a user