Image

This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0

The “Image” element is used to display an image on the screen or page. To use an image, you can import an image from the local storage media or an external image that you can access from the URL. You can also use an image that is stored in the database in binary format.  

In the application, images are used as a symbol, illustration, company logo, icon for a functionality, etc. You can use the images in varieties of formats such as PNG, JPFG, GIF, etc.

Usage

When to useWhen not to use
You can use the image:
–> To display it as a background skin for a widget.
–> As a company logo.
–> For common functions such as mail, delete, task completion, task failure, downloading, etc.
–> Do not use the distorted image.
–> If the image does not relate to the context.
–> Avoid the overdone images.

Image Configuration

On the “Image” element, you can perform the following configurations:

  • UI Configuration
  • Event Configuration

UI Configuration

For the “Image” element, you can configure the following UI properties:

TabProperty NameDescriptionMandatoryNew Default ValueVisibility Rules
BasicReference NameSpecifies a unique name of the element. At the application level, an element is identified and managed by the reference name.YesImage_1
BasicImage TypeAllows you to choose the type of image- Icon or LetterNoIcon
BasicImage SourceHelps you configure the source location from where the application fetches the image and then displays it. You can configure the source location by using the two following options:

–> None:- Click this option when you want to display the hardcoded image instead of defining the source location to fetch the image.

–> URL:- Click this option when you want to fetch the image from a specific URL-based location. After you select this option, the Enter Image URL box appears.

–> Asset Library:- Click this option when you want to fetch the image from the Assets Manager module. After you select this option, the Select Asset box appears.
NoURL
BasicEnter Image URLThis box appears after you select URL in the Image Source list. In this box, enter the URL to load the image file from a specific URL location. You can upload the image in the following file formats:
i. JPEG
ii. GIF
iii. PNG
iv. SVG
NoIf Image Source = URL
BasicSelect AssetAllows you to fetch the image from the Assets Manager module. To fetch the image:
–> In the Select Asset box, click icon (), and the Select Asset dialog box opens.
–> In the Select Asset dialog box, find the image and then select it.
–> After you select the image, click Select, and the Select Asset box displays the path of the selected asset.
–> Thus, you successfully configure the image from the Assets Manager module.

You can upload the image from the Assets Manager in the following file formats:
i. JPEG
ii. GIF
iii. PNG
iv. SVG
YesNo File Selectedif source = Assets
BasicVisibleAllows you to define the default visibility of the UI element. Nomarked
BasicBusiness RuleClick this list and then select a pre-defined business rule that will determine the element’s visibility. If the user’s action satisfies the condition in the business rule, the application will display or hide the element.

To define the business rule, access the Business Rule Manager module.
No
BasicEnableClick this check box to make the element active or inactive. The user can perform the function on the active element.NoSelected
BasicBusiness RuleClick this list and then select a business rule to make the element active or inactive. If the user’s action satisfies the condition in the business rule, the application will make the element active or inactive in the application.

To define the business rule, access the Business Rule Manager module.
No
UI PropertiesStylesAllows you to select a specific style for the element from the list of pre-defined styles. The vDesigner module offers pre-defined styles that you can apply to the element.NoDefault
UI Properties- BackgroundColorClick in the Color box and then define the color of the image?s background.NoE0E0E0if image type = letter
UI Properties- BackgroundOpacityOpacity is the degree to which content behind an element is hidden, and is the opposite of transparency.Yes100%
UI Properties- Alignment & SpacingMarginAllows you to desirably define margin around each side of the element. It provides four different boxes to define the margin outside the right, left, top, and bottom border of the element.NoTheme Variable (Margin)
UI Properties- Alignment & SpacingElement’s AlignmentThis property contains three tabs. You can use these tabs as follows:
1. Left:- By default, this tab is selected. It aligns the element to the left of the page.
2. Center:- If you select this tab, it aligns the element at the center of the page.
3. Right:- If you select this tab, it aligns the element to the right of the page.
NoLeft
UI Properties- Shape & DecorationTypeUnder the Shape and Decoration section, this property has the two following options:

Autofill:- If you select this option, the element will occupy the available space of the parent layout.

Manual:- If you select this option, you can define a specific size of the element.
UI Properties- Shape & DecorationWidth ValueEnter the width of the element in the percentage or pixel unit.No108px
UI Properties- Shape & DecorationHeight ValueEnter the height of the element in the pixel unit.No108px
UI Properties- Shape & DecorationXAllows you to move the element along the X-axis; when the value increases, the element moves from left to right.NoShow & Disable
UI Properties- Shape & DecorationYAllows you to move the element along the Y-axis; when the value increases, the element moves from top to bottom.NoShow & Disable
UI Properties- Shape & DecorationFit TypeAllows you to configure the size of the icon (image of the icon) in the container based on the following options:
–> Cover:-
It expands the width of the image in the image container to maintain the aspect ratio. After applying this option, the height of the image may be cropped in the image container.

–> Fill:
After you select this option, it stretches the width and height of the image to fit the image in the image container. 

–> Contain:-
After you select this option, it may resize the image to fit it in the image container to maintain the aspect ratio.
NoCover
UI Properties- Shape & DecorationBorder RadiusAllows you to define the radius of any of the corners of the element. Defining the radius of the corner makes the corner of the element round.NoTheme Variable (Border Radius)
DataEntity PathThis property allows you to map an attribute to the element. You define the JSON based attributes in the entity in the Data Modeler module.

To define the entity path:
–> Click in the Entity Path box, and a list expands.
–> The list displays several attributes from the entity.
–> In the list, select an attribute to map it to the element.

After the user performs the function on the element, the application can perform the following functions:
a. Fetches data from the attribute and then displays it in the element.
b. Stores data in the attribute.
NoEntityName.
DataError ImageYou can use this property to configure an error image. The error image is used to display a specific error.

To configure an error image, you can use the following options:
–> URL:
i. When you select this option, the Enter Image URL box appears.
ii. In the Enter Image URL box, enter the image’s URL.

The application will access the URL to display the error image to the user.

–> Asset Library:
i. When you select this option, the Select Asset box appears.
ii. In the Select Asset box, click the asset library icon (), and the Select Asset dialog box opens.
iii. In the Select Asset dialog box, select an image and then click Select, and you successfully configure the image as an error image.
No

Event Configuration

On the “Image” element, you can configure the following event:

  • onClick
Was this article helpful?
YesNo