- Getting Started
- Before You Begin
- How To
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Apps User Guide
Responsive and mobile-friendly embedded apps
You can add logic to your external webpage, making your embedded app responsive to screen size changes. This can be useful if you use small-screen devices, such as mobile phones, because it mitigates the need for you to scroll multiple times to see the embedded app content.
If you do not add this logic to your webpage, the embed maintains a static height and displays a scroll bar.
The script performs the following operations:
-
When a control is added to or removed from the app, the script triggers the
APP_CONTENT_HEIGHT_UPDATED
event, and updates the height of theembed
variable.-
The
APP_CONTENT_HEIGHT_UPDATED
event triggersAPP_CONTENT_RESIZED
, which reduces the height of theembed
variable by 10 pixels.-
The
APP_CONTENT_RESIZED
event triggers anotherAPP_CONTENT_RESIZED
event, which again reduces the height of theembed
variable by 10 pixels.
-
-
The script repeats these operations, until:
-
The
embed
variable is at the minimum height where a scroll bar is not required to view the app. -
The
embed
variable is reduced to the initial value, which is specified byMIN_HEIGHT
.
Responsive and mobile-friendly embedded app
Introduction
This webpage embeds a mobile app inside a device frame. The app displays content responsively for mobile usage. An iFrame loads content dynamically, and displays it inside the device frame. The app content adjusts its height based on its content, in order to prevent scrollbars.