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.
navigation
Default: Default navigation grouped by category(All AdapTable Modules)- 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
- This demo shows the Settings Panel with some configuration properties set, including:
- Setting
popupTypeto'window'so the panel is draggable and respectssize/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
- Setting
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: modalmodal | windowShowing Settings Panel Button
AdapTable provides 2 options for whether the Settings Panel button is always displayed in other UI Components:
alwaysShowInDashboardalwaysShowInToolPanel
Note
If set to true the Button is always displayed irrespective of what is set in Dashboard and ToolPanel settings
alwaysShowInDashboard
Default: falseBooleanalwaysShowInToolPanel
Default: falseBooleanIcons
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 PanelshowModuleIcons- whether the Settings Panel will show the icon for each Module that it lists
icon
Default: ConfigurationIconConfigurationIcon | Application Icon | Adaptable IconshowModuleIcons
Default: truebooleanSize 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 valuessize- setting width and height
position
Default: Middle of Screen2 numberssize
Default: Computed based on screen size2 numbersSettings 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 PanelstringHiding 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
disableDeleteConfirmationproperty 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: falseBoolean