Configuring the Settings Panel

Summary

  • The Settings Panel can be configured by developers at design-time, including:
    • order and visibility of the Custom Panel sections
    • title, position, size and popup type of the window

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

Other Settings Panel Options

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

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

  • the title displayed
  • the icon displayed
  • its position and size
  • the popup type (i.e. modal or window)
  • whether to display icons in Module List

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

Expand to see the Settings Panel Options

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

AdapTable provides 2 options for whether the Settings Panel button is always displayed in other UI Components:

  • alwaysShowInDashboard
  • alwaysShowInToolPanel

Note

If set to true the Button is always displayed irrespective of what is set in Dashboard and ToolPanel settings

alwaysShowInDashboard

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

alwaysShowInToolPanel

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

Icons

AdapTable provides 2 properties relating to Icons in the Settings Panel:

  • icon - sets the Icon which is displayed at the top left of the Settings Panel
  • showModuleIcons - whether the Settings Panel will show the icon for each Module that it lists

icon

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

showModuleIcons

Default: true
boolean
Whether to display the icon for each listed Module

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

By default the Settings Panel will simply render "Settings Panel" as the title.

An alternative title can be provided for the Settings Panel by using the aptly named title property.

title

Default: Settings Panel
string
Title of the Settings Panel

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