Adding visual elements can greatly enhance user experience. In this section, we’ll walk you through setting up a display image element and explain each configuration option in detail.
For the image element, you can configure the element properties and style from the element settings.
Setting up a display image element involves a few key configurations:
To add an image element, access the elements panel and select Image.
Once added, place the image wherever you want it on the page. Don’t worry if it’s not perfectly positioned initially; you can always move it later.
Learn more about how to add and remove an element from a page.
Now that you’ve added the image, it’s time to customize its appearance and functionality. This is where image properties come in, including those related to style.
When you want to add an image to a page, you have two options: uploading it directly from your device, or providing the web address (URL) where the image is stored online.
Uploading works best for pictures you have or manage yourself. It’s when you pick an image file from your computer, phone, or another device.
To upload an image directly from your device, click the Upload button. This will open a file explorer window on your device.
Locate the desired image file and select it. The Application Builder will then upload the image and make it available for use on the page.
If the image you want to use is stored online, you can link to it instead of uploading it. Linking is preferable when the image is hosted elsewhere.
The Application Builder allows you to bind the URL to data sources. This enables the URL to update dynamically based on user input or application logic. This is helpful for referencing existing images stored elsewhere.
Image alt text, which is short for “alternative text,” is important for accessibility and search engine optimization (SEO).
An image alt text provides a textual description of the image for users who may not be able to see it. The alt text is displayed if the image fails to load properly in a web browser and read aloud by screen readers for the visually impaired, ensuring everyone can understand the image’s purpose.
The Application Builder allows you to bind the text to data sources. This enables the text to update dynamically based on user input or application logic.
Horizontal alignment refers to placing an image to the left, center, or right side of its parent element, which can be the entire page or a specific section.
This helps you manage how images are displayed on the page. By setting the image size appropriately, you can ensure they fit seamlessly without appearing stretched or distorted.
There are two options to control image size:
Constraining images ensures a consistent visual experience and prevents unintended layout issues.
For image element, here are the constraints:
Extend to max width: This means the image will stretch horizontally as much as it can without distorting its height. It fills the available space from left to right.
Contain: Contain means the image will fit entirely within its container. This option is unavailable while limiting the height of the image. If the image has a maximum height set, the image won’t be able to adhere to it while containing.
Cover: Cover means the image will expand or shrink to cover the entire container, maintaining its aspect ratio. This may result in parts of the image being cropped if it doesn’t perfectly fit the container’s dimensions. This option is unavailable when the max height is not set.