Dashboard Modes
Summary
- By default the Dashboard is visible and placed above AG Grid with Tabs expanded
- However there are alternative Dashboard Modes available to suit different requirements:
- Inline
- Collapsed
- Floating
- Hidden
The default visibility settings for the Dashboard are:
- Visible
- Placed above AG Grid
- Tabs display Toolbar contents horizontally
- The first Tab is expanded
However there are 4 alternative options for displaying the Dashboard:
Inline Mode
The Dashboard Inline Mode presents the Tabs and Toolbars in a different way.
The Dashboard Header collapses to become the first Toolbar and a dropdown displays a list of available Tabs.
Note
This is usually used as a screen estate saving option as it takes up less space than the regular mode
If there is only one Tab provided, the dropdown is not be displayed.
Hint
This is a useful way to show only Toolbars without the User needing to know anything about Tabs
Caution
Unlike with other Modes which can be set at run-time, Inline can only be configured by developers at design-time
- This example shows the Dashboard in Inline Mode
- The tabs are displayed in a dropdown - with
Searchcurrently selected
Collapsed Mode
In Collapsed Mode, AdapTable displays only the Dashboard Header, Title, Buttons and Quick Search.
Note
The Toolbars are not visible and only appear when the name of the Tab is clicked
- Here the Dashboard is Collapsed - so that only the names of the Tabs are visible at start-up
- We have also set 2 other Dashboard Options properties:
showQuickSearchInHeaderis false which removes the Quick Search inputcanFloatis false which means that double-clicking the Dashboard does not put it in floating mode
Expand to see the Dashboard Options and Initial State
Click a Tab Header to expand the Dashboard and then click the open Tab to collapse it again
Floating Mode
Floating Mode render a much narrower Dashboard Header with just the Title displayed.
This control displays on top of AG Grid cells
Hint
For this reason, Floating Mode can be very useful space saving feature
The floating Dashboard can be dragged to any position by clicking on the Name.
When it does this, the mouse will change to a cross indicating it can be dragged.
Note
Double-clicking the Dashboard (when in floating mode) will restore it to the default docked mode.
The canFloat property of Dashboard Options can be set to false to prevent Floating.
canFloat
Default: trueBoolean- This demo shows the Dashboard in Floating Mode
Double-click the Title in the Dashboard to dock it, and then double-click again to put it back into floating mode
Hidden Mode
The Dashboard can be set to be hidden so it is not visible to users.
Note
- The Dashboard is, however, still instantiated by AdapTable
- It can, therefore, be made visible by users via the Column Menu, Context Menu, Tool Panel or Settings Panel
Hint
To ensure the Dashboard can never be visible set its Entitlement to Hidden
- In this demo the Dashboard is set to Hidden and cannot be seen
- However it is initilaised - which means it can be made visible through using the Menus the Tool Panel
Make the Dashboard visible again by selecting Dashboard / Show from the Column or Context menus
Switching Dashboard Modes
Run-time users are able to switch easily between the different Dashboard Modes.
This can be done in multiple ways, including:
-
Manually in the UI, where users can:
-
Switch between Tabs by clicking the name of a non-active tab
-
Collapse / Expand the Dashboard by clicking on the active tab
-
Float / Dock the Dashboard by double-clicking the Title in the Dashboard Header
-
-
A
DashboardMenu Item in both Column Menu and Context Menu containing 4 sub menu items:Configure- opens the Dashboard section of the Settings PanelCollapse/ExpandFloat/DockHide/Show
-
In the Dashboard Tool Panel which contains 3 checkboxes:
- Collapse
- Float
- Hidden
Hint
These 3 checkboxes are also available in the Dashboard section of the Settings Panel
Configuring Dashboard Modes
Each Dashboard Mode can be configured at design-time using Dashboard Initial State:
-
Inline Mode - set via
IsInlinepropertyNote
This setting cannot be subsequently overridden in the UI
-
Collapsed / Expanded View - set via
IsCollapsedproperty -
Floating / Dock View - set via
IsFloatingpropertyCaution
The Dashboard can only be floated if
canFloatproperty is set to true in Dashboard Options -
Hidden / Visible - set via
IsHiddenpropertyHint
Users cannot subsequently make the Dashboard visible if there is an Entitlement set of
hidden