Functions relating to the AdapTable Dashboard.

TypeScript
export interface

Methods

MethodDescription
collapseDashboard()Collapses Dashboard so only Dashboard Header is visible (and not Toolbars' contents)
dockDashboard()Docks Dashboard so it 'snaps back' into its customary position above the grid
expandDashboard()Expands Dashboard so Toolbars in Active Tab are fully visible
floatDashboard()Floats Dashboard so only Dashboard Header is visible (in reduced size); can be dragged to a new location
getActiveTab()Returns current Active Tab (if there is one)
getActiveTabIndex()Returns current Active Tab index (if there is one)
getCurrentToolbars()Retrieves all Toolbars in Active Tab
getCustomDashboardButtonByLabel(buttonLabel)Retrieves first Custom Button with given Label
getCustomDashboardButtons()Retrieves all Custom Buttons
getCustomToolbarByName(customToolbarName)Returns Custom Toolbar with the given name
getCustomToolbarHTMLElement(customToolbarName)Returns the HTML Element for the given Custom Toolbar. This should only be used in Vanilla AdapTable for toolbars created via a render function.
getCustomToolbars()Retrieves all Custom Toolbars
getDashboardState()Retrieves Dashboard section from Adaptable State
getModuleButtons()Retrieves the Module Buttons in the Dashboard
getPinnedToolbars()Retrieves pinned toolbars
getTabByName(tabName)Retrieves the Tab from State that matches inputted name
getTabs()Retrieves the Tabs in the Dashboard
hideDashboard()Hides the Dashboard so cannot be seen
isDashboardCollapsed()Is Dashboard Collapsed
isDashboardDocked()Is Dashboard Docked
isDashboardExpanded()Is Dashboard Expanded
isDashboardFloating()Is Dashboard Floating
isDashboardHidden()Is Dashboard Hidden
isDashboardVisible()Is Dashboard Visible
isToolbarVisible(toolbar)Checks if a given Toolbar is visible
openDashboardSettingsPanel()Opens Settings Panel with Dashboard section selected and visible
refreshDashboard()Refreshes entire Dashboard, including Toolbars and Buttons; particularly relevant for AdapTable built-in elements, as framework components are dependent on the framework specific change detection mechanisms
setActiveTab(tabName)Sets Active Tab in Dashboard
setActiveTabIndex(tabIndex)Sets Active Tab in Dashboard
setCustomToolbarHTMLContent(customToolbarName, htmlContent)Renders the given HTML string in the given Custom Toolbar. This should only be used in Vanilla AdapTable for toolbars created via a render function!
setDashboardTitle(title)Sets title of Dashboard Header
setModuleButtons(moduleButtons)Sets which Module Buttons are visible
setPinnedToolbars(toolbars)Sets pinned toolbars
setTabs(Tabs)Updates the Tabs in the Dashboard
showDashboard()Makes the Dashboard visible

Method Details

collapseDashboard

Collapses Dashboard so only Dashboard Header is visible (and not Toolbars' contents)

TypeScript
collapseDashboard(): void;
Returns

void

dockDashboard

Docks Dashboard so it 'snaps back' into its customary position above the grid

TypeScript
dockDashboard(): void;
Returns

void

expandDashboard

Expands Dashboard so Toolbars in Active Tab are fully visible

TypeScript
expandDashboard(): void;
Returns

void

floatDashboard

Floats Dashboard so only Dashboard Header is visible (in reduced size); can be dragged to a new location

TypeScript
floatDashboard(): void;
Returns

void

getActiveTab

Returns current Active Tab (if there is one)

TypeScript
getActiveTab(): DashboardTab | undefined;
Returns

DashboardTab | undefined

getActiveTabIndex

Returns current Active Tab index (if there is one)

TypeScript
getActiveTabIndex(): number | undefined;
Returns

number | undefined

getCurrentToolbars

Retrieves all Toolbars in Active Tab

TypeScript
getCurrentToolbars(): AdaptableDashboardToolbars | string[];
Returns

AdaptableDashboardToolbars | string[]

getCustomDashboardButtonByLabel

Retrieves first Custom Button with given Label

TypeScript
getCustomDashboardButtonByLabel(buttonLabel: string): AdaptableButton<DashboardButtonContext> | undefined;
Parameters
ParameterTypeDescription
buttonLabelstringthe label of the Custom Button to retrieve
Returns

AdaptableButton<DashboardButtonContext> | undefined

getCustomDashboardButtons

Retrieves all Custom Buttons

TypeScript
getCustomDashboardButtons(): AdaptableButton<DashboardButtonContext>[];
Returns

AdaptableButton<DashboardButtonContext>[]

getCustomToolbarByName

Returns Custom Toolbar with the given name

TypeScript
getCustomToolbarByName(customToolbarName: string): CustomToolbar;
Parameters
ParameterTypeDescription
customToolbarNamestringthe name of the Custom Toolbar
Returns

CustomToolbar

getCustomToolbarHTMLElement

Returns the HTML Element for the given Custom Toolbar. This should only be used in Vanilla AdapTable for toolbars created via a render function.

TypeScript
getCustomToolbarHTMLElement(customToolbarName: string): HTMLElement | null;
Parameters
ParameterTypeDescription
customToolbarNamestringthe name of the Custom Toolbar
Returns

HTMLElement | null

getCustomToolbars

Retrieves all Custom Toolbars

TypeScript
getCustomToolbars(): CustomToolbar[];
Returns

CustomToolbar[]

getDashboardState

Retrieves Dashboard section from Adaptable State

TypeScript
getDashboardState(): DashboardState;
Returns

DashboardState

getModuleButtons

Retrieves the Module Buttons in the Dashboard

TypeScript
getModuleButtons(): AdaptableModuleButtons;
Returns

AdaptableModuleButtons

getPinnedToolbars

Retrieves pinned toolbars

TypeScript
getPinnedToolbars(): AdaptableDashboardToolbars | string[];
Returns

AdaptableDashboardToolbars | string[]

getTabByName

Retrieves the Tab from State that matches inputted name

TypeScript
getTabByName(tabName: string): DashboardTab;
Parameters
ParameterTypeDescription
tabNamestringthe tab to check
Returns

DashboardTab

getTabs

Retrieves the Tabs in the Dashboard

TypeScript
getTabs(): DashboardTab[];
Returns

DashboardTab[]

hideDashboard

Hides the Dashboard so cannot be seen

TypeScript
hideDashboard(): void;
Returns

void

isDashboardCollapsed

Is Dashboard Collapsed

TypeScript
isDashboardCollapsed(): boolean;
Returns

boolean

isDashboardDocked

Is Dashboard Docked

TypeScript
isDashboardDocked(): boolean;
Returns

boolean

isDashboardExpanded

Is Dashboard Expanded

TypeScript
isDashboardExpanded(): boolean;
Returns

boolean

isDashboardFloating

Is Dashboard Floating

TypeScript
isDashboardFloating(): boolean;
Returns

boolean

isDashboardHidden

Is Dashboard Hidden

TypeScript
isDashboardHidden(): boolean;
Returns

boolean

isDashboardVisible

Is Dashboard Visible

TypeScript
isDashboardVisible(): boolean;
Returns

boolean

isToolbarVisible

Checks if a given Toolbar is visible

TypeScript
isToolbarVisible(toolbar: AdaptableDashboardToolbar | string): boolean;
Parameters
ParameterTypeDescription
toolbarAdaptableDashboardToolbar | stringtoolbar to check visibility for
Returns

boolean

openDashboardSettingsPanel

Opens Settings Panel with Dashboard section selected and visible

TypeScript
openDashboardSettingsPanel(): void;
Returns

void

refreshDashboard

Refreshes entire Dashboard, including Toolbars and Buttons; particularly relevant for AdapTable built-in elements, as framework components are dependent on the framework specific change detection mechanisms

TypeScript
refreshDashboard(): void;
Returns

void

setActiveTab

Sets Active Tab in Dashboard

TypeScript
setActiveTab(tabName: string): void;
Parameters
ParameterTypeDescription
tabNamestringname of tab to set
Returns

void

setActiveTabIndex

Sets Active Tab in Dashboard

TypeScript
setActiveTabIndex(tabIndex: number): void;
Parameters
ParameterTypeDescription
tabIndexnumberthe tab index to set
Returns

void

setCustomToolbarHTMLContent

Renders the given HTML string in the given Custom Toolbar. This should only be used in Vanilla AdapTable for toolbars created via a render function!

TypeScript
setCustomToolbarHTMLContent(customToolbarName: string, htmlContent: string): void;
Parameters
ParameterTypeDescription
customToolbarNamestringname of Custom Toolbar hosting content
htmlContentstringHTML string to render
Returns

void

setDashboardTitle

Sets title of Dashboard Header

TypeScript
setDashboardTitle(title: string): void;
Parameters
ParameterType
titlestring
Returns

void

setModuleButtons

Sets which Module Buttons are visible

TypeScript
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
Parameters
ParameterTypeDescription
moduleButtonsAdaptableModuleButtonsbuttons to show
Returns

void

setPinnedToolbars

Sets pinned toolbars

TypeScript
setPinnedToolbars(toolbars: AdaptableDashboardToolbars | string[]): void;
Parameters
ParameterTypeDescription
toolbarsAdaptableDashboardToolbars | string[]
Returns

void

setTabs

Updates the Tabs in the Dashboard

TypeScript
setTabs(Tabs: DashboardTab[]): void;
Parameters
ParameterTypeDescription
TabsDashboardTab[]
Returns

void

showDashboard

Makes the Dashboard visible

TypeScript
showDashboard(): void;
Returns

void