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

TypeScript
export interface

Methods

MethodDescription
closeAdapTableToolPanel()Closes the Tool Panel section (irrespective of which toolpanel is showing)
getCustomToolPanelButtons()Retrieves all Custom Tool Panel Buttons defined in ToolPanelOptions
getCustomToolPanelByName(name)Retrieves the CustomToolPanel with the given name (or undefined if no match is found)
getCustomToolPanels()Retrieves all Custom Tool Panels defined in ToolPanelOptions
getModuleButtons()Sets the Module buttons from the Adaptable ToolPanel
getToolPanelState()Retrieves Tool Panel section from Tool Panel State
openAdapTableToolPanel()Opens the Adaptable ToolPanel Component
setAdaptableToolPanelVisibilityMode(adaptableToolPanel, visibilityMode)Sets the given Adaptable ToolPanel with the provided visibilityMode (expanded / collapsed)
setCustomToolPanelVisibilityMode(customToolPanelName, visibilityMode)Sets the Custom ToolPanel with the given name with the provided visibilityMode (expanded / collapsed)
setModuleButtons(moduleButtons)Sets the Module buttons in the Adaptable ToolPanel
showToolPanelPopup()Opens 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

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

CustomToolPanel | undefined

getCustomToolPanels

Retrieves all Custom Tool Panels defined in ToolPanelOptions

TypeScript
getCustomToolPanels(): CustomToolPanel[];
Returns

CustomToolPanel[]

getModuleButtons

Sets the Module buttons from the Adaptable ToolPanel

TypeScript
getModuleButtons(): AdaptableModuleButtons;
Returns

AdaptableModuleButtons

getToolPanelState

Retrieves Tool Panel section from Tool Panel State

TypeScript
getToolPanelState(): ToolPanelState;
Returns

ToolPanelState

openAdapTableToolPanel

Opens the Adaptable ToolPanel Component

TypeScript
openAdapTableToolPanel(): void;
Returns

void

setAdaptableToolPanelVisibilityMode

Sets the given Adaptable ToolPanel with the provided visibilityMode (expanded / collapsed)

TypeScript
setAdaptableToolPanelVisibilityMode(adaptableToolPanel: AdaptableToolPanel, visibilityMode: ToolPanelVisibilityMode): void;
Parameters
ParameterTypeDescription
adaptableToolPanelAdaptableToolPanel
visibilityModeToolPanelVisibilityMode
Returns

void

setCustomToolPanelVisibilityMode

Sets the Custom ToolPanel with the given name with the provided visibilityMode (expanded / collapsed)

TypeScript
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;
Parameters
ParameterTypeDescription
customToolPanelNamestring
visibilityModeToolPanelVisibilityMode
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