Set Value
Purpose
Sets the value of an element e.g. the text to be shown in a label.
Example
set-value --elementName my-template-name --value "Hello World"
Command Syntax
| Parameter | Format | Requirement | Usage |
|---|---|---|---|
--elementName | String | Mandatory | The element whose value is being set. |
--value | String | Mandatory | The value of the element. Depending on the element type the value will have a different meaning e.g label type has text as the value but image type will have the png name as the value. |
Value Format Expectations
| Element Type | Format | Requirements |
|---|---|---|
label | String | The text to show in the label. Labels with spaces will need encapsulated in quotes as in the example above. |
qr | String | The value of the QR code e.g. a fully qualified URL. |
image | String | The name of the image without .png extension. Names with spaces will need encapsulated in quotes as in the example above. |
progress | Integer | A number between 0 and 100 representing the percentage completion |
button | Not Applicable | |
button-array | Not Applicable | |
container | Not Applicable | |
spinner | Not Applicable | |