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:

PropertyDescriptionDefault
ModuleButtonsAdapTable Module Buttons visible in ToolPanelEmpty Array
ToolPanelsAdaptable Tool Panels which are viaibleToolPanels for all available Modules (subject to Entitlement rules)

A Tool Panel is defined as follows:

PropertyDescriptionDefault
NameToolPanel name - either an Adaptable Module or a Custom ToolPanel (defined in ToolPanel Options)
VisibilityModeWhether the ToolPanel is 'expanded' or 'collapsed''collapsed'

Tool Panel Options

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

PropertyDescriptionDefault
customButtonsToolPanel Buttons provided by Users which perform custom behaviour
customToolPanelsToolPanels provided by Users which contain custom content
showToolPanelsDropdownDisplay the Tool Panels dropdowntrue

Tool Panel API

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

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