Text

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

The “text” element makes a bold visual statement. Use them to create an impact when the main goal is to narrate a visual storytelling.

Usage

When to use
You can use this element to display the news content, product information, content of a subject, and visual storytelling, in addition to displaying alerts and error messages on the screen/page.

Text Configuration

The “Text” element consists of the following properties:

  • UI Configuration
  • Event Configuration

UI Configuration

For the “Text” 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.YesText_1
BasicCaptionIn this box, you can enter the value of the “Text”element. The application displays the caption of the “Text” element on the screen.

If you do not enter a value in the Caption box, the “Text” element displays $.{text} as a default value.
NoSample Text
BasicDefault ValueThis property allows you to define the default value of an element.

To define the default value:
–> Click in this box, and it displays the list of the pre-define functions, attributes, and element IDs.
–> In the list, select an attribute from which the application will fetch the default value and then display it in the element.
{{fx}}
BasicUnderlineIt includes two options as follows:
Yes: – Click this option if you want to underline the text.
Nounmarked
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. These pre-defined styles are:
-> Primary
–> Secondary
–> Warning
–> Info
–> Danger
–> Success
NoPrimary
UI Properties- Alignment & SpacingMarginAllows you to desirably define the 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- CaptionFontSelect the font type (For example – Arial) of the element’s caption.NoTheme Variable (Font Family)
UI Properties- CaptionSizeEnter the font size of the caption.No12
UI Properties- CaptionColorSelect the color of the font of the caption.NoTheme Variable (Caption)
UI Properties- CaptionBoldEnter the thickness of the character of the element’s caption in the range of values from 1 to 9.No4
UI Properties- CaptionStyleSelect the style of font (For example- Italic) of the captionNoNormal
UI Properties- Shape & DecorationWidth ValueEnter the width of the element in the pixel unit.No100%
UI Properties- Shape & DecorationHeight ValueEnter the height of the element in the percentage unit or pixel unit.NoSet as ___ & Disable
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 & DecorationTypeThis property allows you to adjust the size of the element according to the layout. To configure the element, it provides the following options:
1. Autofill:- If you select this option, the element will automatically occupy the available space in the layout.

2. Wrap:- If you select this option, the element will wrap based on the characters’ length.

3. Manual:- If you select this option, you can define the size of the layout.
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.

Event Configuration

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

  • onClick
Was this article helpful?
YesNo