Allows the easy configuration of multiple symbols and components in a repetitive and responsive way. It offers a user-friendly interface that automatically adjusts the layout of items based on panel characteristics and the datasource. This topic explains how to configure the FlowPanel, its layout options (panel type), data source types, and how the control dynamically adapts to the runtime environment.
On this page:
This component is Portable. It runs both on Windows and on Web Pages hosted in any platform.
The FlowPanel supports several panel types that control the layout of symbols or components. Each panel type has specific behavior, described below:
The FlowPanel supports four types of data sources: Text, StringTag, Array, and Object. The choice of data source determines how items are generated and displayed in the panel.
#Element=<control or symbol name> #<property name1>=<property value1> #<property name2>=<property value2> etc
#element=LampSymbol #Color=red #Size=medium
#element=PumpControl #State=on #FlowRate=Tag.Tag1
StringTag = "#element=LampSymbol #Color=red #Size=medium #element=PumpControl #State=on #FlowRate=Tag.Tag1"
StringTag1[0] = #Element=
ValveSymbol
#Status
="Open"
StringTag1[1] = #Element=ConveyorBelt
#Speed=100 #State=Tag.State["#element=ValveSymbol #status=open", "#element=ConveyorBelt #speed=fast"]
Example DataTable:
element | color | state |
---|---|---|
LampSymbol | red | on |
MotorSymbol | green | off |
Example Template: Tag array of 2 position with datatype of a template
member | index 0 | index 1 |
---|---|---|
LampSymbol | red | on |
MotorSymbol | green | off |
To configure a FlowPanel:
Go to Displays / Draw.
On the Components Panel, select Viewer, then FlowPanel.
Click or drag-and-drop it on the Drawing area to use it.
Double-click the component to open the configuration window.
FlowPanel Settings | |
---|---|
Field | Description |
Panel Type | Sets the Panel mode for the component. Options are: WrapPanel: Positions child elements in sequential position from left to right, breaking content to the next line at the edge of the containing box. Canvas: arrange the items using the standard Canvas container. DockPanel: arrange the items using the standard Dock container. Grid: Defines a flexible grid area consisting of columns and rows. StackPanelHorizontal: Arranges child elements into a single line oriented horizontally. StackPanelVertical: Arranges child elements into a single line oriented vertically. UniformGrid: Used to arrange children in a grid with all equal cell sizes. |
Panel Settings | Allows configure panel setting properties following the same format of data source. Example: #Background=Green, where Background is a property of the panel. |
Items Source | Determines the source of the items displayed in the FlowPanel. Can be bound to a list or collection, and users can specify the type of data, such as text or objects. Options are: Text: Allows the FlowPanel to display a list of simple text items. Useful for representing straightforward string values such as machine states or operational modes. StringTag: Enables the FlowPanel to display a list of items generated from a pre-existing Tag of the Text type. This feature is particularly useful when multiple FlowPanels across different displays need to present the same information consistently. Array: Allows the FlowPanel to display items from an array. Suitable for predefined sets of options, such as lists of sensor IDs or operational steps, enabling efficient management of uniform data. Object: Allows the FlowPanel to display items from a collection of objects. Ideal for complex data representation where each item has multiple attributes, such as equipment lists with properties like name, ID, and status. The object can be Databases Queries, or any realtime Tag, AssetPath, or property from the system namespaces |
Max Items | Specifies the maximum number of items that the FlowPanel can display or hold. Limits the number of items to prevent overload and improve performance. |
Reload | Specifies a command or function that reloads the items in the FlowPanel. Ensures that the FlowPanel displays the most current data, useful for dynamic or real-time data sources. |
Quantity | Defines how many items will be sourced in the design preview. (not applied to runtime) |
Width | Defines the width of each panel, ensuring that each panel is properly sized according to the user's preferences and fits seamlessly within the FlowPanel. |
Height | Defines the height of each panel, ensuring that each panel is properly sized according to the user's preferences and fits seamlessly within the FlowPanel. |
Margin | Specifies the margin for each panel, ensuring sufficient spacing to avoid a cramped layout. |
The FlowPanel is a responsive control, meaning it adjusts the arrangement of items based on the screen size and the size and type of panel used. When the window or browser is resized, the FlowPanel automatically reorganizes items to optimize the available space. (if the display is configured as Responsive)
The FlowPanel’s data source can be updated dynamically. To do this, simply trigger a reload on the control, and it will refresh with the new data source. This feature is useful in systems where data or conditions change frequently.
Check out FlowPanel Dynamic Symbols Example to see this feature in action. |
In this section: