If the default order provided by AdapTable is not appropriate, the navigation property in Settings Panel Options can be used to provide a different grouped layout for the Settings Panel.
navigation
Default: Default navigation grouped by category
(All AdapTable Modules)
Grouped navigation in the Settings Panel
All Modules which do not have an Entitlement of Hidden appear in the Settings Panel.
AdapTable lists all of these in conceptual groups (see DeepDive above for more details).
Use the navigation property to return a different set of groups and modules.
Each group has 2 properties:
label - section heading (use an empty string for items without a heading)
items - module or custom panel names
// Create a new grouped order for the Settings Panel// Include a Custom Settings Panel ('App Settings') as the first groupconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{customSettingsPanels:[{name:'App Settings',frameworkComponent:AppSettingsPanel},],navigation:(_context,_defaultNavigation)=>({groups:[{label:'Application',items:['App Settings']},{label:'Important',items:['CalculatedColumn','FormatColumn']},{label:'UI',items:['Dashboard','ToolPanel']},{label:'Administration',items:['Alert','CustomSort','Export']},{label:'Support',items:['GridInfo','TeamSharing','Theme']},],}),},};
Note
Grouped navigation replaces the legacy flat shape. Legacy flat navigation is still accepted; see Version 23 release note if you need to migrate stored configuration.
Each button opens a different page in the Settings Panel, including the SettingsPanel Modules Button which opens the Settings Panel on the first page.
By default this is the only Module Button that appears in the Tool Panel.
Users are able, however, to remove this Button by changing the Modules Buttons collection in the Tool Panel UI.
Setting this property to true means that this Button can never be removed (in the UI).
// Ensure the Settings Panel is always displayed in the AdapTable ToolPanel ComponentconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{alwaysShowInToolPanel:true,},};
Icons
The icon property sets the Icon displayed at the top left of the Settings Panel (and on the Dashboard Home control).
Whether Module names show an icon in the left-hand list is configured under Navigation Display. The Glyph used for each Module is set in User Interface Options.
// Use the Icon set as the Application Icon for the Settings PanelconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{icon:'ApplicationIcon',},};
Top-level showModuleIcons and showModuleDescriptions are deprecated — use displayOptions instead.
Size and Position
AdapTable provides 2 properties that can be used to set the initial size and location of the Settings Panel:
Caution
Both of these are only applied if popupType is 'window'
position - using x, y values
size - setting width and height
position
Default: Middle of Screen
2 numbers
Where the Settings Panel is positioned
By default AdapTable will put the Settings Panel in the middle of the Screen.
Use this property to provide a different location.
The position object has 2 numeric properties - x and y:
// The initial position of the Settings Panel windowconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{popupType:'window',position:{x:100,y:200,},},};
size
Default: Computed based on screen size
2 numbers
Size of the Settings Panel
By default AdapTable will calculate the size of the Settings Panel using the current screen size.
Use this property to provide an actual size.
The size object has 2 numeric properties - width and height:
// The initial size of the Settings Panel windowconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{popupType:'window',size:{width:800,height:450,},},};
Settings Panel Title
End users never see the internal name “Settings Panel”. The chrome, menus and tooltips use title when you set it, otherwise adaptableId (if it is a meaningful name), otherwise Grid Settings.
title
Default: adaptableId, or Grid Settings
string
Title of the Settings Panel
Use this property to set the Title of the Settings Panel — what appears at the top of the panel, on the Dashboard Home control, and in Open … menu items.
// The title of the Settings PanelconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{title:'My Settings',},};
Grid Info Tabs
Grid Info is the first page in the Settings Panel and shows four tabs by default: Summary, Layout, State and Options.
Pass the subset of tabs to display. Omit a tab (for example Grid Options) to hide it.
// Show only Summary and State in Grid InfoconstadaptableOptions: AdaptableOptions = {settingsPanelOptions:{gridInfoTabs:['Grid Summary','Grid State'],},};
showAgGridVersion
Default: true
Boolean
Displays the AG Grid version in Grid Info
Shown on the Summary tab. Set this to false to hide it.
userInterfaceOptions:{
showAgGridVersion:false,},
Hiding Delete Warnings
The Settings Panel allows users to delete AdapTable Objects (where their Entitlements allow).
Each time this happens, AdapTable will show a warning asking the user to confirm the deletion.
If this becomes tiresome for Users, there are 2 ways to hide warnings:
run time - click the "Do not show this again" checkbox when the first warning appears
Caution
With second option, the suspension is only active for the current session, and isn't reapplied on application re-start
disableDeleteConfirmation
Default: false
Boolean
Hides confirmation dialog which displays whenever an Adaptable Object is deleted
By default AdapTable displays a warning whenever an AdapTable Object is about to be deleted.
Set this property to true to stop users seeing this warning.
// Don't display a warning when deleting an Adaptable ObjectconstadaptableOptions: AdaptableOptions = {userInterfaceOptions:{disableDeleteConfirmation:true,},};