Page

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

In the vDesigner module, a page is a basic building block. You can use a page to create an application page. In the vDesigner module, a page is treated as a component. You can add a page as a page or popup page.

At the component-level, you can configure different properties in a page under the following categories:

  • UI Configuration
  • Data Configuration
  • Security Configuration
  • Event Configuration

These properties are described as follows:

UI Configuration

TabProperty NameDescriptionMandatoryNew Default ValuesVisibility Rules
BasicScrollWhen you click this check box, the page displays the scroll bar. The user can move the scroll bar to see the content of the page.NoClear Check box
BasicRotateWhen you click this check box, the screen or related page will automatically switch to landscape mode after the user turns his or her device sideways.NoClear Check box
BasicAllow ScreenshotWhen you click this check box, the application allows you to take a screen capture of the related page.NoClear Check box
BasicCustom Width (Web)Allows you to the change the width of the application page.NoSelected Check box
BasicSwitch to Popup PageWhen you click Switch to Popup Page, the page is converted into a popup page.

In the application, you can use the popup page to display it over the main page as a popup screen or dialog box.
No
BasicCustom Width (Web)In this box, enter a value greater than 375 pixels to change the default width of the application page.NoWhen Custom Width check box = “Selected”
UI Properties-StyleStylesAllows you to select a specific style for the page from the list of pre-defined styles. The vDesigner module offers pre-defined styles that you can apply to the element.NoDefault
UI Properties-BackgroundPage BackgroundAllows you to define page’s background by providing the following options:
1. Color
2. Image
3. Gradient
YesColor
UI Properties-BackgroundColorClick the left box to define the background color of the page.Yes#FFFFFFWhen Page Background = Color
UI Properties-BackgroundImage SourceThis box comes into view after you select Image in the Page Background list.

To configure an image as the element’s background, you can use one of the following options:
–> None
–> URL
–> Asset Library
YesWhen Page Background = Image
UI Properties-BackgroundImage URLThis box comes into view after you select URL in the Image Source list. In the Image URL box, enter the URL of an image.

The application fetches the image from the URL-based location and then displays it as the page’s background.
YesWhen Image Source = URL
UI Properties-BackgroundFit TypeProvides the following options to resize the image in the container:
1. Cover:- The image keeps its aspect ratio and fills the available dimensions. The image is clipped to fit in the container.

2. Fill:- With this option, the image is resized to fill the given dimensions. If required, the image is stretched or reduced to fit in the container.

3. Contain:- The image keeps its aspect ratio but is resized to fit in the container.
NoCoverWhen Page Background = Image
UI Properties-BackgroundAxisAllows you to configure the orientation of the gradient color as follows:
1. Vertical
2. Horizontal


In a color scheme, a color gradient specifies a range of position-dependent colors. These colors are used to fill a region.
YesVerticalWhen Page Background = Gradient
UI Properties-BackgroundColor1Allows you to define the first color in the color gradient scheme.

Click the left box to select the first color.
Yes#FFFFFFWhen Page Background = Gradient
UI Properties-BackgroundColor2Allows you to define the second color in the color gradient scheme.

Click the left box to select the second color.
Yes#FFFFFFWhen Page Background = Gradient
UI Properties-Alignment and SpacingPaddingThis property allows you to define padding around each side of the page. It provides four different boxes to define the padding around the right, left, top, and bottom side of the page.

The padding specifies the space in pixels around each side of the page inside the page border.
UI Properties-Alignment and SpacingContainer Internal AlignmentAllows you to define the alignment of different elements that you drag to a page.

You can define the alignment of elements across horizontal and vertical axes of the page.

Click the first list to select the alignment across the horizontal axis as follows:
1. Left
2. Center
3. Right


Click the second list to select the alignment across the vertical axis as follows:
1. Top
2. Middle
3. Bottom
4. Space Around
5. Space Between
6. Space Evenly


Data Configuration

TabProperty NameDescriptionMandatoryNew Default ValuesVisibility Rules
Data Configuration-InputEntity PathThis property allows you to map an entity to a page.

To map an entity:
1. Click in the Entity Path box, and a smart selector expands.
2. The smart selector displays the list of different entities, functions, and elements.
3. In the list, select an entity for the following purposes:
a. To fetch the data from the entity and then display it on the page.
b. To get the data from page and then store it in the entity.

No {{ fx }}

Security Configuration

TabProperty NameDescriptionMandatoryNew Default ValuesVisibility Rules
Security Configuration-BasicPrivate PageWhen you click this check box, the related page becomes a private page. The user can access the private page after authentication.NoClear Check box

Event Configuration

On the page, you can configure the following events:

  • onPageResume
  • onPageCreate
  • onBackPress
  • onPageDestroy
  • onPageBackground

Was this article helpful?
YesNo