Difference between revisions of "GUI Basics"

From 3forge Documentation
Jump to navigation Jump to search
(25 intermediate revisions by the same user not shown)
Line 86: Line 86:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| Settings || Includes the option to change Panel ID, User Preferences ID, and Default Offset
+
| '''Settings''' || Includes the option to change Panel ID, User Preferences ID, and Default Offset
 
|-
 
|-
| Style || Includes both styling and behavior options for the dividers
+
| '''Style''' || Includes both styling and behavior options for the dividers
 
|-
 
|-
| Set Current Offset as Default || Sets the offset of the divider as the default. Reopening/rebuilding the layout will place the divider at this position
+
| '''Set Current Offset as Default''' || Sets the offset of the divider as the default. Reopening/rebuilding the layout will place the divider at this position
 
|-
 
|-
| Clear Default Offset || Clears the divider position set
+
| '''Clear Default Offset''' || Clears the divider position set
 
|-
 
|-
| Flip Panels || Flips the position of the panels
+
| '''Flip Panels''' || Flips the position of the panels
 
|-
 
|-
| Rotate Panels Clockwise || Rotates the selected panels in a clockwise direction
+
| '''Rotate Panels Clockwise''' || Rotates the selected panels in a clockwise direction
 
|-
 
|-
| Rotate Panels Counterclockwise || Rotates the selected panels in a counterclockwise direction
+
| '''Rotate Panels Counterclockwise''' || Rotates the selected panels in a counterclockwise direction
 
|-
 
|-
| Change to 2 Tabs || Removes the divider and places each of the panels in a tab
+
| '''Change to 2 Tabs''' || Removes the divider and places each of the panels in a tab
 
|-
 
|-
| Distribute Dividers || Evenly distributes the dividers
+
| '''Distribute Dividers''' || Evenly distributes the dividers
 
|-
 
|-
| Replace With... || Replaces the panels with a different visualization or blank panel
+
| '''Replace With...''' || Replaces the panels with a different visualization or blank panel
 
|-
 
|-
| Add Panel || Add a blank panel left, right, above, or below
+
| '''Add Panel''' || Add a blank panel left, right, above, or below
 
|-
 
|-
| Place Highlighted in Scroll Panel || Places the selected panels in a scroll panel
+
| '''Place Highlighted in Scroll Panel''' || Places the selected panels in a scroll panel
 
|-
 
|-
| Place Highlighted in Tab || Places the panels in tabs
+
| '''Place Highlighted in Tab''' || Places the panels in tabs
 
|-
 
|-
| Place Highlighted in Window || Places the panels in a new window, leaving behind a blank panel in their place
+
| '''Place Highlighted in Window''' || Places the panels in a new window, leaving behind a blank panel in their place
 
|-
 
|-
| Move to Different Layout File... || When working with multiple layouts - moves selected panels to a different layout
+
| '''Move to Different Layout File...''' || When working with multiple layouts - moves selected panels to a different layout
 
|-
 
|-
| Cut Highlighted Panels || Cut the panels for pasting to a different panel
+
| '''Cut Highlighted Panels''' || Cut the panels for pasting to a different panel
 
|-
 
|-
| Copy Highlighted Panels || Copies the panels for pasting to a different panel
+
| '''Copy Highlighted Panels''' || Copies the panels for pasting to a different panel
 
|-
 
|-
| Delete Highlighted Panels || Deletes the selected panels
+
| '''Delete Highlighted Panels''' || Deletes the selected panels
 
|-
 
|-
| Hide Highlighted Panels || Hides the selected panels. To unhide, use the '''Unhide Panel''' option in the panel configuration menu
+
| '''Hide Highlighted Panels''' || Hides the selected panels. To unhide, use the '''Unhide Panel''' option in the panel configuration menu
 
|-
 
|-
| Export Highlighted Panels || Export the highlighted panels, as text, for use in another dashboard
+
| '''Export Highlighted Panels''' || Export the highlighted panels, as text, for use in another dashboard
 
|-
 
|-
| Paste || Paste the cut/copied panel(s)
+
| '''Paste''' || Paste the cut/copied panel(s)
 
|}
 
|}
  
'''<span style="color: blue;">Examples</span>'''
+
<span style="color: purple;">'''Example'''</span>
  
 
'''Adding panels'''
 
'''Adding panels'''
Line 152: Line 152:
 
Under the Style section of the Divider Style menu, you can adjust the thickness of the divider, the color of the divider, and the color of the divider when the mouse is hovering over it. Note: To make a divider invisible, change the thickness to 0(px).
 
Under the Style section of the Divider Style menu, you can adjust the thickness of the divider, the color of the divider, and the color of the divider when the mouse is hovering over it. Note: To make a divider invisible, change the thickness to 0(px).
  
[[File:Guides.Dividers.2.jpg|450px]]
+
[[File:Guides.Dividers.2.jpg|420px]]
  
 
===Behavior===
 
===Behavior===
  
[[File:Guides.Dividers.4.jpg]]
+
[[File:Guides.Dividers.4.jpg|420px]]
  
 
<span style="color: blue;">'''Locking Dividers'''</span>
 
<span style="color: blue;">'''Locking Dividers'''</span>
Line 172: Line 172:
 
When enabled, the '''Snap Setting''' allows you to collapse a divider by double clicking on it. Depending on the setting used, the panel to the left, right, top, or bottom will be collapsed.
 
When enabled, the '''Snap Setting''' allows you to collapse a divider by double clicking on it. Depending on the setting used, the panel to the left, right, top, or bottom will be collapsed.
  
Unsnap minimum(%): when set, the divider will return to at least that % position of the window. For example: if the unsnap minimum is set to 60%, and the the divider was dragged to 40%; snapping and then unsnapping the divider will return the divider to the 60% location
+
'''Note''': when a panel is snapped away, it is considered hidden. This will affect the behavior of the panel when it is a real-time table. The real-time table will have a '''On-Hidden Behavior''' setting.
 +
 
 +
'''Unsnap minimum(%)''': when set, the divider will return to at least that % position of the window. For example: if the unsnap minimum is set to 60%, and the the divider was dragged to 40%; snapping and then unsnapping the divider will return the divider to the 60% location
 +
 
 +
=Tabs=
 +
Tabs can be used to organize and increase the real-estate of dashboards. Through the use of tabs, you may be able to break down a layout into multiple components or even build entire layouts in a single tab. The creation of tabs differs depending on which panel or divider configuration button is used.
 +
 
 +
==Creating Tabs==
 +
 
 +
In order to place a single panel into a tab, click on the configuration button of the panel and select '''Place Highlighted in Tab'''
 +
 
 +
[[File:GUI.Tabs.1.jpg|500px]]
 +
 
 +
[[File:GUI.Tabs.2.jpg]]
 +
 
 +
If the window consists of 2 or more panels, they can be separated into 2 tabs or can be placed into one tab.
 +
 
 +
To place the panels into 2 separate tabs, select '''Change to 2 Tabs''' from the divider configuration menu
 +
 
 +
[[File:GUI.Tabs.3.jpg|620px]]
 +
 
 +
[[File:GUI.Tabs.4.jpg]]
 +
 
 +
Note: even if a panel is subdivided into multiple panels (such as the panel labeled '''2'''below), it will still place the panel into one tab; it will not become 3 tabs.
 +
 
 +
[[File:GUI.Tabs.7.jpg|620px]]
 +
 
 +
[[File:GUI.Tabs.8.jpg|620px]]
 +
 
 +
To place multiple panels or the entire window into a single tab, choose the divider configuration button which '''highlights''' the desired panels and select '''Place Highlighted in Tab''' from the menu.
 +
 
 +
[[File:GUI.Tabs.9.jpg|620px]]
 +
 
 +
[[File:GUI.Tabs.10.jpg|620px]]
 +
 
 +
==Adding, Editing, Moving, and Deleting Tabs==
 +
<span style="color: blue;">'''Adding New Tabs'''</span>
 +
 
 +
To add additional tabs, click on the '''tab configuration button''' and select '''Add Tab'''. You can also enable the '''Show Add Button''' option in the Style menu.
 +
 
 +
[[File:GUI.Tabs.11.jpg]]
 +
 
 +
[[File:GUI.Tabs.12.jpg|500px]]
 +
 
 +
<span style="color: blue;">'''Tab dropdown menu'''</span>
 +
 
 +
Another way to add tabs is to use the '''tab dropdown menu'''. This menu is located on each tab and is opened by clicking on the downward pointing green triangle. This menu contains all of the ways of modifying tabs - renaming, deleting, adding, and moving. This menu allows the addition of tabs to either the left or the right of the selected tab.
 +
 
 +
'''Export to Spreadsheet''': downloads the tables within a tab as a spreadsheet. If you have multiple table panels, these panels will be shown as separate tabs in the spreadsheet. You can disable this option by using the tab configuration menu ('''Hide Export Spreadsheet Menu Item''')
 +
 
 +
<span style="color: blue;">'''Moving Tabs'''</span>
 +
 
 +
If you have to move the tabs around, use the tab dropdown menu of the tab you would like to move and use one of the four options (move left, right, leftmost, or rightmost) until you get the tab to where you would like it to be
 +
 
 +
[[File:GUI.Tabs.13.jpg]]
 +
 
 +
<span style="color: blue;">'''Renaming Tabs'''</span>
 +
 
 +
In addition to the tab dropdown menu, the tab settings menu can be brought up by double clicking on a tab. This menu also includes the options to select colors for the tabs
 +
 
 +
<span style="color: blue;">'''Deleting Tabs'''</span>
 +
 
 +
Tabs can also be deleted by deleting all of the panels within a tab. If there are multiple panels, select the divider that will highlight all of the panels.
 +
 
 +
When you are left with a single tab, you can also use the '''Remove Tab, Keep Panel''' open in the tab configuration menu in order to revert the panel to a regular window
 +
 
 +
[[File:GUI.Tabs.15.jpg]]
 +
 
 +
==Setting Default Tabs==
 +
 
 +
If you would like a specific tab to be the primary tab that is seen when a layout is opened, use the '''Set as Default''' option from the tab dropdown menu. This tab will then be opened regardless of which tab is last opened when the layout is closed.
 +
 
 +
==Navigating==
 +
 
 +
When making complex layouts, you may end up with so many tabs that it won't be able to fit on the list of tabs. When the number of tabs exceed the space, control arrows will appear at the rightmost edge. You can use these control arrows to scroll through the tabs.
 +
 
 +
[[File:GUI.Tabs.16.jpg]]
 +
 
 +
To quickly get to a tab, hover over the tabs and use the mouse scroll to scroll the tab space (much like scrolling down a webpage) and select the desired tab.
 +
 
 +
==Undocking & Popping Out==
 +
Tabs can be undocked (panels remain on the layout) or popped out (panels are opened in a new browser window). In order to allow undocking and popping out, the '''Allow Undocking''' option must be enabled (tab configuration menu > Style > General). The option to hide a tab when it is popped out can also be found in the same menu (tab is hidden in non-developer mode)
 +
 
 +
[[File:GUI.Tabs.17.jpg]]
 +
 
 +
[[File:GUI.Tabs.18.jpg|600px]]
 +
 
 +
Note: closing a popped out window does not delete it - it is returned to the tab (or undocked window if it was undocked prior to popping out)
 +
 
 +
==Blinking Tabs==
 +
When particular attention has to be drawn to a certain tab, blinking can be used. The option to choose a blinking color and period are found in the tab settings (double click on the tab or tab dropdown menu > Rename/Settings)
 +
 
 +
[[File:GUI.Tabs.19.jpg|400px]]

Revision as of 19:33, 9 April 2021

Windows

In AMI, windows are the building blocks of layouts. Windows are highly customizable and entire complex layouts can be built within one window. This section will discuss the various options you have when starting out with a window.

The Windows option can be found on the top menu bar. Developers have the option of creating and managing windows whereas end-users are still able to use the menu to view a list of windows that are in the layout.

Guides.Windows.01.jpg

Renaming Windows

Once created, Windows can be renamed by double clicking on the Window name or by using the Configure Window found in the middle of the Window header.

Guides.Windows.02.jpg

Guides.Windows.04.jpg

Popping out, Minimizing, Maximizing, and Deleting Windows

Using the buttons found on the right side of the window header, you can pop out a window (into its own window), minimize, maximize, or delete a window.

Guides.Windows.05.jpg

Guides.Windows.06.jpg: pops out the window its own window. When you close a popped out window, it will return the window onto the dashboard (it will not be deleted). The status of the window will be shown as [popped out] in the Windows menu.

Guides.Windows.08.jpg: minimizes the window. Minimized windows can be accessed by selecting them from the Windows menu.

Guides.Windows.09.jpg: maximizes the window or restores a maximized window to its original size.

Guides.Windows.10.jpg: deletes the window. Windows in use will require confirmation before being deleted.

Note: in order to delete individual panels within windows, use the configuration button menu of the panel and select Delete Highlighted Panels. If the window does not have any panels, selecting this option will delete the window.

Resizing and Moving Windows

In order to resize a window, click and hold any part of the edges or corners of the window. While holding the mouse button, drag the cursor to resize the window

In order to move a window around the dashboard, click and hold the window header. While holding the mouse button, move the window to any area of the dashboard.

Configure Window menu

The Configure Window menu found in the window header contains a lot of options to be used for the windows. The options to be discussed in this section are Type and Location in Menu Bar.

Type

Maximized, no Header: maximizes the size of the window and removes the window header. The Configure Window button will still be visible when in developer mode.

Regular: the default state of windows with all window header buttons available.

Hidden: hides the name of the window from the Windows drop down menu when not in developer mode. When in developer mode, the name of the window will be visible with a [hidden] label. This is useful when creating windows that will be kept minimized or behind other windows and only available when taking a certain action.

Guides.Windows.11.jpg

You can also use the Manage Windows option in the Windows menu in order to get an overview of all of the windows in the layout and apply a configuration to each.

Guides.Windows.14.jpg

Location in Menu Bar

If you would like to place a window under its own menu item in the menu bar, use the Location in Menu Bar option to assign a Menu Name. The menu item will then appear when not in developer mode (and the window is not hidden):

Guides.Windows.12.jpg

Guides.Windows.13.jpg

The window will list appear in the Windows menu:

Guides.Windows.15.jpg

Dividers

As a layout is made of a window or multiple windows, a window is made of a panel or multiple panels. Dividers allow you to take a single window and subdivide it as you see fit to best visualize your information.

Adding Panels

There are two ways to create dividers/divide a window into panels:

The first way to divide a window is using the Split Vertically and Split Horizontally found in the panel configuration menu (also known as the Green Button).

Guides.Windows.16.jpg

The second way to divide a window is to actually create panels using the Add Panel option also found in the panel configuration menu.

Guides.Windows.17.jpg

Both options lead to the creation of dividers with their own set of options. Dividers, by default, can be dragged by the user to adjust the real-estate of the two panels they divide. In order to further modify the window, use the divider configuration button found on the divider itself. Opening the configuration menu will highlight the associated panels and numbers will be assigned to each panel.

Guides.Windows.18.jpg

Settings Includes the option to change Panel ID, User Preferences ID, and Default Offset
Style Includes both styling and behavior options for the dividers
Set Current Offset as Default Sets the offset of the divider as the default. Reopening/rebuilding the layout will place the divider at this position
Clear Default Offset Clears the divider position set
Flip Panels Flips the position of the panels
Rotate Panels Clockwise Rotates the selected panels in a clockwise direction
Rotate Panels Counterclockwise Rotates the selected panels in a counterclockwise direction
Change to 2 Tabs Removes the divider and places each of the panels in a tab
Distribute Dividers Evenly distributes the dividers
Replace With... Replaces the panels with a different visualization or blank panel
Add Panel Add a blank panel left, right, above, or below
Place Highlighted in Scroll Panel Places the selected panels in a scroll panel
Place Highlighted in Tab Places the panels in tabs
Place Highlighted in Window Places the panels in a new window, leaving behind a blank panel in their place
Move to Different Layout File... When working with multiple layouts - moves selected panels to a different layout
Cut Highlighted Panels Cut the panels for pasting to a different panel
Copy Highlighted Panels Copies the panels for pasting to a different panel
Delete Highlighted Panels Deletes the selected panels
Hide Highlighted Panels Hides the selected panels. To unhide, use the Unhide Panel option in the panel configuration menu
Export Highlighted Panels Export the highlighted panels, as text, for use in another dashboard
Paste Paste the cut/copied panel(s)

Example

Adding panels

Adding a panel above using the right panel configuration button adds a panel only above the right panel:

Guides.Windows.19.jpg

Adding a panel above using the divider configuration button adds a panel above both panels:

Guides.Windows.20.jpg

Modifying Dividers

The options to modify dividers are all found in the divider's Style setting.

Guides.Dividers.1.jpg

Style

Adjusting Size and Color

Under the Style section of the Divider Style menu, you can adjust the thickness of the divider, the color of the divider, and the color of the divider when the mouse is hovering over it. Note: To make a divider invisible, change the thickness to 0(px).

Guides.Dividers.2.jpg

Behavior

Guides.Dividers.4.jpg

Locking Dividers

Dividers may be locked in order to prevent it from moving when not in developer mode. A small lock will appear over the divider configuration button

Guides.Dividers.3.jpg

Alignment

The Align options keeps the size of the panels consistent when resizing the windows. For example, when set to the Ratio option, resizing a window consisting of two panels will keep their sizes relatively similar to their original sizes.

Snapping

When enabled, the Snap Setting allows you to collapse a divider by double clicking on it. Depending on the setting used, the panel to the left, right, top, or bottom will be collapsed.

Note: when a panel is snapped away, it is considered hidden. This will affect the behavior of the panel when it is a real-time table. The real-time table will have a On-Hidden Behavior setting.

Unsnap minimum(%): when set, the divider will return to at least that % position of the window. For example: if the unsnap minimum is set to 60%, and the the divider was dragged to 40%; snapping and then unsnapping the divider will return the divider to the 60% location

Tabs

Tabs can be used to organize and increase the real-estate of dashboards. Through the use of tabs, you may be able to break down a layout into multiple components or even build entire layouts in a single tab. The creation of tabs differs depending on which panel or divider configuration button is used.

Creating Tabs

In order to place a single panel into a tab, click on the configuration button of the panel and select Place Highlighted in Tab

GUI.Tabs.1.jpg

GUI.Tabs.2.jpg

If the window consists of 2 or more panels, they can be separated into 2 tabs or can be placed into one tab.

To place the panels into 2 separate tabs, select Change to 2 Tabs from the divider configuration menu

GUI.Tabs.3.jpg

GUI.Tabs.4.jpg

Note: even if a panel is subdivided into multiple panels (such as the panel labeled 2below), it will still place the panel into one tab; it will not become 3 tabs.

GUI.Tabs.7.jpg

GUI.Tabs.8.jpg

To place multiple panels or the entire window into a single tab, choose the divider configuration button which highlights the desired panels and select Place Highlighted in Tab from the menu.

GUI.Tabs.9.jpg

GUI.Tabs.10.jpg

Adding, Editing, Moving, and Deleting Tabs

Adding New Tabs

To add additional tabs, click on the tab configuration button and select Add Tab. You can also enable the Show Add Button option in the Style menu.

GUI.Tabs.11.jpg

GUI.Tabs.12.jpg

Tab dropdown menu

Another way to add tabs is to use the tab dropdown menu. This menu is located on each tab and is opened by clicking on the downward pointing green triangle. This menu contains all of the ways of modifying tabs - renaming, deleting, adding, and moving. This menu allows the addition of tabs to either the left or the right of the selected tab.

Export to Spreadsheet: downloads the tables within a tab as a spreadsheet. If you have multiple table panels, these panels will be shown as separate tabs in the spreadsheet. You can disable this option by using the tab configuration menu (Hide Export Spreadsheet Menu Item)

Moving Tabs

If you have to move the tabs around, use the tab dropdown menu of the tab you would like to move and use one of the four options (move left, right, leftmost, or rightmost) until you get the tab to where you would like it to be

GUI.Tabs.13.jpg

Renaming Tabs

In addition to the tab dropdown menu, the tab settings menu can be brought up by double clicking on a tab. This menu also includes the options to select colors for the tabs

Deleting Tabs

Tabs can also be deleted by deleting all of the panels within a tab. If there are multiple panels, select the divider that will highlight all of the panels.

When you are left with a single tab, you can also use the Remove Tab, Keep Panel open in the tab configuration menu in order to revert the panel to a regular window

GUI.Tabs.15.jpg

Setting Default Tabs

If you would like a specific tab to be the primary tab that is seen when a layout is opened, use the Set as Default option from the tab dropdown menu. This tab will then be opened regardless of which tab is last opened when the layout is closed.

Navigating

When making complex layouts, you may end up with so many tabs that it won't be able to fit on the list of tabs. When the number of tabs exceed the space, control arrows will appear at the rightmost edge. You can use these control arrows to scroll through the tabs.

GUI.Tabs.16.jpg

To quickly get to a tab, hover over the tabs and use the mouse scroll to scroll the tab space (much like scrolling down a webpage) and select the desired tab.

Undocking & Popping Out

Tabs can be undocked (panels remain on the layout) or popped out (panels are opened in a new browser window). In order to allow undocking and popping out, the Allow Undocking option must be enabled (tab configuration menu > Style > General). The option to hide a tab when it is popped out can also be found in the same menu (tab is hidden in non-developer mode)

GUI.Tabs.17.jpg

GUI.Tabs.18.jpg

Note: closing a popped out window does not delete it - it is returned to the tab (or undocked window if it was undocked prior to popping out)

Blinking Tabs

When particular attention has to be drawn to a certain tab, blinking can be used. The option to choose a blinking color and period are found in the tab settings (double click on the tab or tab dropdown menu > Rename/Settings)

GUI.Tabs.19.jpg