add options to customize the model view dashboard (#9872)

* add options to customize the mv dashboard

* rename the property
This commit is contained in:
Alan Ren
2020-04-06 20:04:38 -07:00
committed by GitHub
parent 9819e97f7b
commit c2b8fcde45
8 changed files with 40 additions and 13 deletions

View File

@@ -224,8 +224,20 @@ declare module 'azdata' {
* Layout of TabbedPanelComponent, can be used to initialize the component when using ModelBuilder
*/
export interface TabbedPanelLayout {
/**
* Tab orientation
*/
orientation: TabOrientation;
/**
* Whether to show the tab icon
*/
showIcon: boolean;
/**
* Whether to show the tab navigation pane even when there is only one tab
*/
alwaysShowTabs: boolean;
}
/**
@@ -300,7 +312,7 @@ declare module 'azdata' {
open(): Thenable<void>;
}
export function createModelViewDashboard(title: string): ModelViewDashboard;
export function createModelViewDashboard(title: string, options?: ModelViewDashboardOptions): ModelViewDashboard;
}
export interface DashboardTab extends Tab {
@@ -321,5 +333,17 @@ declare module 'azdata' {
*/
tabs: DashboardTab[];
}
export interface ModelViewDashboardOptions {
/**
* Whether to show the tab icon, default is true
*/
showIcon?: boolean;
/**
* Whether to show the tab navigation pane even when there is only one tab, default is false
*/
alwaysShowTabs?: boolean;
}
}