- Description
- Styles available
- How to use it
- 1. Create a menu function
- 2. Create a menu structure
- 3. Add the toolbar to your screen
- Attributes
Description
The toolbars are created in Build.One using the SwatToolbarobject. A SwatToolbar is a graphical control element in the form of a toolbar that can be added to a Screens.
Styles available
Two styles are available for the toolbars, once with separated buttons that is recommended for a set of actions that are not related. And another one where all the buttons are grouped in a container that is meant to be used with set of actions that are closely related.
These two styles can be set with the Attribute AttributeStyle
. Using the values default
and grouped
default
toolbargrouped
toolbarHow to use it
1. Create a menu function
To create a toolbar, you need to create a corresponding menu function. How to do this is explained on the following page. Actions.
Below is an example of a menu function for a save operation.
2. Create a menu structure
To create a toolbar, you need to create a corresponding menu structure. How to do this is explained on the following page. Menu structure
Below is an example of a menu structure for a new toolbar in the menu structure
- Start of the menu structure for an application.
- Group to organize an application.
- Group for all toolbars to be used in this application.
- Toolbar object. This object includes all relevant blocks for the toolbar and their associated buttons.
- Actual button in the toolbar. Here, the menu function for the button is defined, as shown in the above example.
3. Add the toolbar to your screen
- To add the toolbar to the screen, search for "SimpleSwatToolbar" in the object catalog. Then, drag and drop it onto a specific panel or use it for the entire screen.
- Next, connect the toolbar object in the Flow Designer to the respective object using the "TableIO" link type.
- In the final step, populate the "ToolBarKey" attribute with the Menu Structure Code from the toolbar object in the Menu Structure. Refer to point 4 in the above image.
Attributes
Attribute | Description | Example/Values |
Toolbarkey | Defines the menu structure of the toolbar. | MyToolbarcode |
LabelDisplay | Defines if labels are shown in the Toolbar | Standard/Show/Hide |
AttributeStyle | Change the style of the toolbar to separate buttons or one combined container | Default, Grouped |
Back to Documentation
Back to Home Page