Attribute Writer Dropdown
The widget enables the user to write predefined values to an attribute. You should use this widget when you want to limit the values that can be written to an attribute in run mode.
Widget setting
The following image shows an example of a widget setting.
It is possible to customize the widget settings from the inspector panel (in edit mode), as shown below:
Input value |
Description |
|---|---|
Device |
Type in a device name (or * to list all devices) |
Attribute |
Once a device is selected, type in an attribute name (or * to list all available attributes) |
Button Title |
Add title to the submit button |
Dropdown Title |
Add title to the dropdown |
Write Values |
Enter values for the attribute |
Spectrum Attribute |
Type in a device name and an attribute name (or * to list all) |
Show Device Name |
Displays the device name when enabled |
Show Tango Database Name |
Displays the tango database name when enabled |
Attribute Display |
Select the Label, Name, or None for the attribute |
Text Color |
Specify the text color for the given widget |
Background Color |
Specify the background color for the given widget |
Text Size (in units) |
1 corresponds to 1em text size |
Font Type |
Choose a font family. Either the default or Monospaced |
Dropdown Title CSS |
Write custom CSS for the button title. The syntax is the same as standard CSS used in HTML files |
Submit Button CSS |
Write custom CSS for the submit button. The syntax is the same as standard CSS used in HTML files |
Custom CSS |
Write custom CSS for the widget container. The syntax is the same as standard CSS used in HTML files |
Widget design
Notice: The widget accepts only inputs of type string, number, boolean or DevEnum.
Good to know about this widget:
If the attribute is of a type not supported, the {attribute} is not supported message is displayed.
If the write value has an incorrect type, the Invalid type for value message is shown on the option and the option is disabled.
For attributes of type boolean, the write value must be “true” or “false”, any other value is considered invalid.
The label of a write value is optional. If the label is empty, the write value is displayed.
Hover over an option to view the write value (if a label is assigned).

