ToolPanelApi

View as Markdown

Functions for managing the AdapTable ToolPanel Component (at side of grid)

TypeScript
export interface

Methods

MethodReturnsDescription
closeAdapTableToolPanel()voidCloses the Tool Panel section (irrespective of which toolpanel is showing)
getCustomToolPanelButtons()AdaptableButton<ToolPanelButtonContext>[]Retrieves all Custom Tool Panel Buttons defined in ToolPanelOptions
getCustomToolPanelByName(name)CustomToolPanel | undefinedRetrieves the CustomToolPanel with the given name (or undefined if no match is found)
getCustomToolPanels()CustomToolPanel[]Retrieves all Custom Tool Panels defined in ToolPanelOptions
getModuleButtons()AdaptableModuleButtonsThe module buttons currently shown in the AdapTable tool panel.
getToolPanelState()ToolPanelStateRetrieves Tool Panel section from Tool Panel State
openAdapTableToolPanel()voidOpens the Adaptable ToolPanel Component
setAdaptableToolPanelVisibilityMode(adaptableToolPanel, visibilityMode)voidExpands or collapses one of the AdapTable tool panels.
setCustomToolPanelVisibilityMode(customToolPanelName, visibilityMode)voidExpands or collapses a custom tool panel.
setModuleButtons(moduleButtons)voidSets the Module buttons in the Adaptable ToolPanel
showToolPanelPopup()voidOpens Settings Panel with Tool Panel section selected and visible

Method Details

closeAdapTableToolPanel

Closes the Tool Panel section (irrespective of which toolpanel is showing)

TypeScript
closeAdapTableToolPanel(): void;
Returns

void

getCustomToolPanelButtons

Retrieves all Custom Tool Panel Buttons defined in ToolPanelOptions

TypeScript
getCustomToolPanelButtons(): AdaptableButton<ToolPanelButtonContext>[];
Returns

All Custom Tool Panel Buttons defined in ToolPanelOptions

AdaptableButton<ToolPanelButtonContext>[]

getCustomToolPanelByName

Retrieves the CustomToolPanel with the given name (or undefined if no match is found)

TypeScript
getCustomToolPanelByName(name: string): CustomToolPanel | undefined;
Parameters
ParameterTypeDescription
namestringthe CustomToolPanel name
Returns

The CustomToolPanel with the given name (or undefined if no match is found)

CustomToolPanel | undefined

getCustomToolPanels

Retrieves all Custom Tool Panels defined in ToolPanelOptions

TypeScript
getCustomToolPanels(): CustomToolPanel[];
Returns

All Custom Tool Panels defined in ToolPanelOptions

CustomToolPanel[]

getModuleButtons

The module buttons currently shown in the AdapTable tool panel.

TypeScript
getModuleButtons(): AdaptableModuleButtons;
Returns

The module buttons currently shown in the AdapTable tool panel

AdaptableModuleButtons

getToolPanelState

Retrieves Tool Panel section from Tool Panel State

TypeScript
getToolPanelState(): ToolPanelState;
Returns

Tool Panel section from Tool Panel State

ToolPanelState

openAdapTableToolPanel

Opens the Adaptable ToolPanel Component

TypeScript
openAdapTableToolPanel(): void;
Returns

void

setAdaptableToolPanelVisibilityMode

Expands or collapses one of the AdapTable tool panels.

TypeScript
setAdaptableToolPanelVisibilityMode(adaptableToolPanel: AdaptableToolPanel, visibilityMode: ToolPanelVisibilityMode): void;
Parameters
ParameterTypeDescription
adaptableToolPanelAdaptableToolPanelWhich AdapTable tool panel
visibilityModeToolPanelVisibilityMode'expanded' or 'collapsed'
Returns

void

setCustomToolPanelVisibilityMode

Expands or collapses a custom tool panel.

TypeScript
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
Parameters
ParameterTypeDescription
customToolPanelNamestringName of the custom tool panel
visibilityModeToolPanelVisibilityMode'expanded' or 'collapsed'
Returns

void

setModuleButtons

Sets the Module buttons in the Adaptable ToolPanel

TypeScript
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;
Parameters
ParameterTypeDescription
moduleButtonsAdaptableModuleButtonsthe module buttons
Returns

void

showToolPanelPopup

Opens Settings Panel with Tool Panel section selected and visible

TypeScript
showToolPanelPopup(): void;
Returns

void