Icon

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

In the mobile app or web application, the “Icon” elements are used to denote a program or functionality. Most of the action items/objects are represented by an icon. In the mobile platform, the icons are part of the graphical presentation, so the icons should be in harmony with the action items for which they are used. Icons cannot be resized or stretched so they should be readable on the screen.

Usage

When to use
Use the icons to:
–> Improve the visualization and capture the user’s attention.
–> Provide the functionality and the action items.
–> Maintain the clutter-free screen appearance.
–> Enhance the usage of the functionality

Icon Configuration

The “Icon” element has the following property:

  • UI Configuration

UI Configuration

For the “Icon” 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.YesIcon_1
BasicIcon LibraryClick this list to select material.io. “Material.io” is a Google’s open-source design system that allows you to select an image for the icon element.Nomaterial.io
BasicChoose IconAllows you to choose an icon from an icon library. To choose an icon:
–> In the Choose Icon box, click the Add icon (), and the Material Icons dialog box opens.
–> In the Material Icons dialog box, select an image for the icon element.
–> After you select an image, click Select, and you successfully choose the icon/image for the icon element.
Noadd
BasicVisibleAllows you to define the default visibility of the UI element. Nomarked
BasicEnableAllows the user to enable/disable an element. You can decide whether the element needs to be clickable and usable.Nomarked
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. These pre-defined styles are:
–> Primary
–> Danger
–> Secondary
–> Success
–> Warning
–> Info
NoPrimary
UI Properties- Alignment & SpacingMarginAllows you to desirably define a margin around each side of the element. It provides four different boxes to define the margin outside the right, left, top, and bottom borders of the element.NoTheme Variable (Margin)
UI Properties- Alignment & SpacingElement AlignmentClick this list to align the element as follows:
–> Right
–> Top
–> Bottom
–> Top Right
–> Top Left
–> Bottom Right
–> Bottom Left
–> Center
NoLeft Top
UI Properties- IconSizeAllows you define the size of the iconNo16
UI Properties- IconColorAllows you define the size of the iconNo#393939
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.
No

Event Configuration

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

  • onLongPress
  • onClick
Was this article helpful?
YesNo