ui.Form.setElementImage
Change the image of form elements.
Syntax
setElementImage(
name STRING,
image STRING )
- name defines the name of the node, see Identifying elements in ui.Form methods.
- image is the image to be set.
Usage
Change the image/icon of a form element with the setElementImage()
method.
Pass the identifier of the form element. The identifier is the element name as defined in the form definition. All elements with this name will be affected. If you want to distinguish form elements, use unique names in the form definition file.