Skip to main content

Image component

The properties for the image component in the Method app builder.

The image component lets you add an image to the screen. This image is static and the user does not have the ability to replace the image.


Image component properties

Selecting the image component shows its configurable properties. Once an image is added, the Display and Event sections appear.

Data source

Add image

Upload an image from your computer to the component. This will reveal the below sections.

Display

Label

Text to identify the component.

Show label

Toggle the visibility of the label for the user.

Default state

The default state of the component (Regular/Hidden/Disabled).

Events

Click

Event triggered when user clicks the image.


Accessing value of a Picture object

The image component will hold URL of the image it is displaying. This value can be altered by using the Update Controls on Screen action, however, you will need to replace it with a valide URL that points to an image.

When an action requires you to 'Assign a value', you can use the value set in the picture object, which will be the URL of the image.

Did this answer your question?