ToolPanelApi
Functions for managing the AdapTable ToolPanel Component (at side of grid)
export interfaceMethods
| Method | Returns | Description |
|---|---|---|
| closeAdapTableToolPanel() | void | Closes 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 | undefined | Retrieves the CustomToolPanel with the given name (or undefined if no match is found) |
| getCustomToolPanels() | CustomToolPanel[] | Retrieves all Custom Tool Panels defined in ToolPanelOptions |
| getModuleButtons() | AdaptableModuleButtons | The module buttons currently shown in the AdapTable tool panel. |
| getToolPanelState() | ToolPanelState | Retrieves Tool Panel section from Tool Panel State |
| openAdapTableToolPanel() | void | Opens the Adaptable ToolPanel Component |
| setAdaptableToolPanelVisibilityMode(adaptableToolPanel, visibilityMode) | void | Expands or collapses one of the AdapTable tool panels. |
| setCustomToolPanelVisibilityMode(customToolPanelName, visibilityMode) | void | Expands or collapses a custom tool panel. |
| setModuleButtons(moduleButtons) | void | Sets the Module buttons in the Adaptable ToolPanel |
| showToolPanelPopup() | void | Opens Settings Panel with Tool Panel section selected and visible |
Method Details
closeAdapTableToolPanel
Closes the Tool Panel section (irrespective of which toolpanel is showing)
closeAdapTableToolPanel(): void;Returns
void
getCustomToolPanelButtons
Retrieves all Custom Tool Panel Buttons defined in ToolPanelOptions
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)
getCustomToolPanelByName(name: string): CustomToolPanel | undefined;Parameters
| Parameter | Type | Description |
|---|---|---|
| name | string | the 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
getCustomToolPanels(): CustomToolPanel[];Returns
All Custom Tool Panels defined in ToolPanelOptions
getModuleButtons
The module buttons currently shown in the AdapTable tool panel.
getModuleButtons(): AdaptableModuleButtons;Returns
The module buttons currently shown in the AdapTable tool panel
AdaptableModuleButtons
getToolPanelState
Retrieves Tool Panel section from Tool Panel State
getToolPanelState(): ToolPanelState;Returns
Tool Panel section from Tool Panel State
openAdapTableToolPanel
Opens the Adaptable ToolPanel Component
openAdapTableToolPanel(): void;Returns
void
setAdaptableToolPanelVisibilityMode
Expands or collapses one of the AdapTable tool panels.
setAdaptableToolPanelVisibilityMode(adaptableToolPanel: AdaptableToolPanel, visibilityMode: ToolPanelVisibilityMode): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| adaptableToolPanel | AdaptableToolPanel | Which AdapTable tool panel |
| visibilityMode | ToolPanelVisibilityMode | 'expanded' or 'collapsed' |
Returns
void
setCustomToolPanelVisibilityMode
Expands or collapses a custom tool panel.
setCustomToolPanelVisibilityMode(customToolPanelName: string, visibilityMode: ToolPanelVisibilityMode): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| customToolPanelName | string | Name of the custom tool panel |
| visibilityMode | ToolPanelVisibilityMode | 'expanded' or 'collapsed' |
Returns
void
setModuleButtons
Sets the Module buttons in the Adaptable ToolPanel
setModuleButtons(moduleButtons: AdaptableModuleButtons): void;Parameters
| Parameter | Type | Description |
|---|---|---|
| moduleButtons | AdaptableModuleButtons | the module buttons |
Returns
void
showToolPanelPopup
Opens Settings Panel with Tool Panel section selected and visible
showToolPanelPopup(): void;Returns
void