Card

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

A card can be used to display content related to a single subject. The content can consist of multiple elements of varying types and sizes.

Usage

When to useWhen not to use
When you want to provide information about a product, selling items, etc.Do not use it when you want to display the content related application, system, or the application user.

Card Configuration

The card element consists of the following properties:

  • UI Configuration
  • Event Configuration

UI Configuration

For the Card 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.YesPC 1
BasicVisibleAllows you to define the default visibility of the UI element. Nomarked
BasicEnableAllows you to turn the element active or inactive. You can determine whether the element needs to be clickable and usable.Nounmarked
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 elementNoDefault
UI Properties-BackgroundTypeAllows you to configure the element?s background. To configure the background, you can choose one of the following options:
–> Color
–> Image
No
UI Properties-BackgroundColorAllows you to configure a color as the element’s background. If you click the Color tab, the Color box opens. To configure a color as the element’s background:
–> In the Color box, click the left color box (), and a color canvas open.
–> On the canvas, on the horizontal bar, move the circle to select the color.
–> In the upper section, move the circle to select the tone of the color.
No#FFFFFFwhen type = color
UI Properties-BackgroundOpacityOpacity is the degree to which content behind an element is hidden, and is the opposite of transparency.

While configuring the color property, you can also define the opacity in the percentage unit.
Yes100%
UI Properties-BackgroundImageAllows you to configure an image as the element?s background. To configure the image as a background:
?> In the Type area, click the Image tab, and the Image Source list appears.
?> In the Image Source list, you can choose one of the following options:
–> None
–> URL
–> Assets Library
Nowhen type = Image
UI Properties-BackgroundImage URLThis box becomes visible after you select URL in the Image Source list. In the Image URL box, enter the image’s URL. The application will fetch the image from a URL-based location and then display it as the element’s background.Nowhen image source = URL
UI Properties-BackgroundSelect AssetsThis box becomes visible after you select Assets Library in the Image Source list. This property allows you to configure an image as the element?s background from the Assets Manager module. To configure the image:
–> In the Select Assets box, click the asset library icon (), and the Select Asset dialog box opens.
–> In the Select Asset dialog box, select an icon and then click Select, and you successfully configure the image as the background image.
Yeswhen image source = Assets
UI Properties-BackgroundElevationAllows you to configure the elevation of the background. The elevation is measured as the relative distance between two surfaces along the Z-axis.No810
UI Properties-Alignment & SpacingPaddingAllows you to desirably define padding around each side of the element. It provides four different boxes to define the padding around the right, left, top, and bottom side of the element.NoTheme Variable (Padding)
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 & SpacingHorizontal AlignmentAllows you to horizontally align the child element in the footer. You can align the child element as follows:
–> Left
–> Centre
–> Right
NoLeft
UI Properties-Alignment & SpacingVertical AlignmentAllows you to vertically align the child element in the footer. You can align the child element as follows:
–> Top
–> Centre
–> Bottom
–> Space Around
–> Space between
–> Space Evenly
NoTop
UI Properties-Shape & DecorationTypeUnder the Shape and Decoration section, this property has the two following options:

Autofill:- If you select this option, you cannot change the element’s dimensions. When you drag the element to the canvas, this option is selected by default.

If you select Auto Fill, vDesigner places the element with the default dimensions.

Manual:- If you select this option, you can change the dimensions of the element.
UI Properties-Shape & DecorationHeight ValueEnter the height of the element in the pixel unit.No10%
UI Properties-Shape & DecorationWidth ValueIn this box, enter the element’s width in the pixels or percentage unit.No
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 & DecorationBorder colorAllows you to define the color of the element’s borders.NoTransparent
UI Properties-Shape & DecorationOpacityOpacity is the degree to which content behind an element is hidden, and is the opposite of transparency.

While configuring the border’s color, you can also define the opacity in the percentage unit.
Yes100%

Event Configuration

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

  • onClick
Was this article helpful?
YesNo