Tool Panel Technical Reference

Summary

  • Tool Panel State and Tool Panel Options are used to set up Tool Panels at design-time
  • Run-time access to Tool Panels is through Tool Panel API

Tool Panel State

The Tool Panel State contains 2 collections:

PropertyTypeDescriptionDefault
ModuleButtonsAdaptableModuleButtonsAdapTable Module Buttons visible in ToolPanelEmpty Array
ToolPanelsAdaptableToolPanelDefinition[]Adaptable Tool Panels which are viaibleToolPanels for all available Modules (subject to Entitlement rules)

A Tool Panel is defined as follows:

PropertyTypeDescriptionDefault
NameAdaptableToolPanel | stringToolPanel name - either an Adaptable Module or a Custom ToolPanel (defined in ToolPanel Options)
VisibilityMode'expanded' | 'collapsed'Whether the ToolPanel is 'expanded' or 'collapsed''collapsed'

Tool Panel Options

The Tool Panel Options section is used to set up the Tool Panel.

PropertyTypeDescriptionDefault
customButtonsAdaptableButton<ToolPanelButtonContext>[]ToolPanel Buttons provided by Users which perform custom behaviour
customToolPanelsCustomToolPanel[]ToolPanels provided by Users which contain custom content
showToolPanelsDropdownbooleanDisplay the Tool Panels dropdowntrue

Tool Panel API

The Tool Panel API section provides run-time access to the Tool Panel.

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()AdaptableModuleButtonsSets the Module buttons from the Adaptable ToolPanel
getToolPanelState()ToolPanelStateRetrieves Tool Panel section from Tool Panel State
openAdapTableToolPanel()voidOpens the Adaptable ToolPanel Component
setAdaptableToolPanelVisibilityMode(adaptableToolPanel, visibilityMode)voidSets the given Adaptable ToolPanel with the provided visibilityMode (expanded / collapsed)
setCustomToolPanelVisibilityMode(customToolPanelName, visibilityMode)voidSets the Custom ToolPanel with the given name with the provided visibilityMode (expanded / collapsed)
setModuleButtons(moduleButtons)voidSets the Module buttons in the Adaptable ToolPanel
showToolPanelPopup()voidOpens Settings Panel with Tool Panel section selected and visible