Option List
Description
The Option List component presents a set of predefined items as a list on the Dashboard, letting users browse and select from them. When a user selects an item, its corresponding value is written to the INT tag configured as the data source. It is well suited for scenarios that require the user to pick one option from a predefined set and have the corresponding value written back to an INT tag—for example, mode selection or shift switching.
Style Settings
Data Source
Select the data source for displaying values. A data source must be set before the Dashboard can be published.
Style
Set the overall presentation style of the Option List component so its appearance stays consistent with other widgets on the Dashboard.
Basic
Background Color
Set the background color of the widget. Click the color picker to open the color panel, which provides preset colors, custom colors, and opacity adjustment.
Title
- Enable: Check the box to display the title
- Title Text: Enter the title content (up to 100 characters)
- Font: Choose the title font from the dropdown, including default, system fonts (Arial, Calibri, Helvetica, Times New Roman, etc.) and Chinese fonts (Microsoft JhengHei, Microsoft YaHei, SimSun, etc.)
- Case: Default / Uppercase / Lowercase / Capitalize
- Size: Title font size, range 10-128
- Font Color: Set the title text color (default #333333)
- Alignment: Left / Center / Right
These settings are disabled when the title is not enabled.
Divider
- Enable: Check to display the divider between the title and the content (enabled by default)
- Color: Default translucent gray rgba(171, 171, 171, 0.36)
- Thickness: Range 1-10
Available only when the title is enabled.
Items
Click [Setting] in the [Mapping] row to open the item mapping dialog and define how data source values map to display text:
- Item count: 1 to 255. Reducing the count removes items from the end; increasing it adds items with default values and text (item0, item1, and so on)
- index: Numbered automatically. The last row is marked as error and represents the undefined state, with the default text unknown state. Its Value cannot be edited—only the text and background color can be set
- Value: The data source value that corresponds to this item
- Text: The text displayed for this item (up to 256 characters)
- Background color: The background color of this item
By default there are 2 items (item0, item1) plus the error row. When the data source value does not match any item, the widget displays the text and background color of the error row. The error row is never shown in the list the user can select from.
The font, case, size, font color, and bold/italic/underline settings apply to all items and cannot be set per item.
Write
- Enabled: When checked, users can expand the list on the published Dashboard and select an item, writing the corresponding value to the INT tag configured as the data source
- Mode:
- Default: The value is written immediately when an item is clicked
- Popup: Clicking an item opens a [Change Option] popover next to it, requiring one more confirmation before the value is written
- Requires confirmation: Shown only in Popup mode. When checked, the popover first shows a [Write] button; pressing it opens a confirmation view that lists the current item text and value along with the item text and value it will change to, and the value is written only after confirming
- Confirm with checkbox: Available only after Requires confirmation is checked. The confirmation view then includes the "Yes, I'd like to change to this option" checkbox, and the confirm button stays disabled until it is checked
These settings are disabled when Write is not enabled.
Profile
Compact Mode
When enabled, the widget is displayed with smaller margins/a more compact layout to save screen space.
Position and Size
- X / Y: The widget's coordinates on the canvas. The minimum is defined by the system; the maximum is calculated dynamically based on the canvas size and the widget's dimensions.
- Width / Height: Each widget has a system-defined minimum usable size and default value; the actual value is calculated dynamically by the system based on the canvas and the widget's content.
User Restriction
Object Class
Select the security access class for this widget. Only users with the corresponding permission can view or operate it: None (default, unrestricted) / Class A through L.
Hide When Protected
When checked, the widget is completely hidden (not just disabled) for users without access permission. Available only after an object class is set.
Disabled
When checked, disables all interactive functionality of this widget. Available only after an object class is set.
Limitations and Notes
- A data source must be set before the Dashboard can be published, or publishing will fail.
- The data source tag for this widget must be of INT type, and at most one tag can be selected. In the tag selection dialog, Boolean, Float, and String tags cannot be checked; the system does not convert types automatically.
- When Write is not enabled, the widget only displays the item text matching the current value. The dropdown arrow is hidden, and clicking the widget does not expand the option list.
- If a [Project Tags] tag is used as the data source, selecting an item shows a message that the tag cannot be modified, and no value is written.
- Users must log in before writing values on a published Dashboard; otherwise a login prompt appears.
- While the previous write is still awaiting a response, the widget shows Busy and no new write is accepted.