Configuring the Settings Panel

View as Markdown

Summary

  • The Settings Panel can be configured by developers at design-time, including:
    • order and visibility of the navigation groups
    • title, position, size and popup type of the window
    • whether navigation shows icons, descriptions, search, and collapse to an icon rail

Developers are able to configure and extend the Settings Panel in multiple ways.

This is achieved by using properties in Settings Panel Options.

Settings Panel Items & Order

AdapTable provides a default order for the items in the Settings Panel (displayed on the left on the Control).

Deep Dive

Default Settings Panel Order

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.

Default: Default navigation grouped by category
(All AdapTable Modules)
Grouped navigation in the Settings Panel
Setting Items in Settings Panel
Fork
  • This demo shows the Settings Panel with a changed order of the Panel Modules
  • We have removed some items, changed the order, and split the nav into separate groups
Loading demo…

Other Settings Panel Options

There are many other properties in Settings Panel Options which can be used to set up the Settings Panel.

These properties include (full details of each option is shown below):

  • title displayed
  • icon displayed
  • position and size
  • popup type (i.e. modal or window)
  • navigation display — icons, descriptions, search, and collapse to an icon rail
  • Grid Info tabs — which tabs appear in Grid Info

Hint

Users can also configure the Settings Panel to display Custom Panels

Customising the Settings Panel
Fork
  • This demo shows the Settings Panel with some configuration properties set, including:
    • Setting popupType to 'window' so the panel is draggable and respects size/position
    • Changing the title to 'Config Viewer'
    • Displaying the Application Icon (which was provided in User Interface Options)
    • Moving the position to 15, 15
    • Reducing the size to 800 x 400
    • Hiding the Module Icons in the list (via displayOptions)

Expand to see the Settings Panel Options

Loading demo…

Settings Panel Type

By default the Settings Panel shows as a modal, meaning it always remains in a fixed position on top of the grid.

However it is possible to configure the Settings Panel to be a window, which comes with some advantages:

  • you can specify a size (see below)
  • you can specify a position (see below)
  • the window is movable, draggable and resizable

Caution

With the default value of modal, you cannot drag, move or resize the window (nor set associated properties)

popupType

Default: modal
modal | window
Configures how the Settings Panel Popup Behaves

Showing Settings Panel Button

The Dashboard always shows a Home control that opens the Settings Panel. It is not a Module Button and cannot be removed in the Dashboard UI.

To keep a Settings Panel button visible in the AdapTable Tool Panel, use alwaysShowInToolPanel.

alwaysShowInToolPanel

Default: false
Boolean
Whether the Settings Panel button is always displayed in the Adaptable Tool Panel

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.

icon

Default: ConfigurationIcon
ConfigurationIcon | Application Icon | Adaptable Icon
Which Icon to display for the Settings Panel

alternativeModuleIcons

Alternative icons to use for Adaptable Modules in the UI

The left-hand navigation can show module icons, short descriptions, a search field, and a collapse control (icon rail).

These are set on displayOptions in Settings Panel Options.

displayOptions.showModuleIcons

Default: true
boolean
Whether to show Icons for each Module when navigation is expanded

displayOptions.showModuleDescriptions

Default: true
boolean
Whether to show Description subtitles under each Module

displayOptions.showNavigationSearch

Default: true
boolean
Whether to show the module search field above Settings Panel navigation

displayOptions.enableCollapseView

Default: true
boolean
Whether users can collapse Settings Panel navigation to an icon rail

Note

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

size

Default: Computed based on screen size
2 numbers
Size of the Settings Panel

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

Grid Info Tabs

Grid Info is the first page in the Settings Panel and shows four tabs by default: Summary, Layout, State and Options.

gridInfoTabs

Default: ['Grid Summary', 'Layout', 'Grid State', 'Grid Options']
('Grid Summary' | 'Layout' | 'Grid State' | 'Grid Options')[]
Which Tabs to show in Grid Info

showAgGridVersion

Default: true
Boolean
Displays the AG Grid version in Grid Info

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:

  • design time: set disableDeleteConfirmation property in User Interface Options
  • 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