Skip to main content

 

 

 

 

Template:OutSystems/Documentation_KB/Breadcrumb_New_Layout

 

 

Template:OutSystems/OSLanguageSwitcher

 

Applies only to Traditional Web Apps

 

 

OutSystems

Move on Device

Template:OutSystems/Documentation_KB/ContentCollaboration
  • Edit
    Collaborate with us
    Edit this page on GitHub
  • We’ve been working on this article. Please let us know how useful this new version is by voting.

    You can use the Move on Device UI Pattern to define the placement of information depending on the device.

    How to use the Move on Device UI Pattern

    1. In Service Studio, in the Toolbox, search for Container.

      The Container widget is displayed.

    2. From the Toolbox, drag the Container widget into the Main Content area of your application's screen.

    3. On the Properties tab, enter the container name.

    4. Repeat steps 2 and 3 for as many containers as you need in your app.

    5. From the Toolbox, drag the Move on Device widget into the Main Content area of your application's screen.

    6. Add the required content to the Move on Device widget.

      In this example, we add an image by dragging the Image widget into the Move on Device widget and selecting an image from the sample OutSystems UI images.

    7. To define where the image appears depending on the device, select the Move on Device widget, and on the Properties tab, set the PhoneWidgetId and TabletWidgetId properties.

    After following these steps and publishing the module, you can test the pattern in your app.

    Properties

    Properties Description
    PhoneWidgetId (Text): Optional Target container that displays this widget on phones.

    Examples

    • Container1.Id - The content appears in this container when viewed on a phone
    TabletWidgetId (Text): Optional Target container that displays this widget on tablets.

    Examples

    • Container2.Id - The content appears in this container when viewed on a tablet
    • Was this article helpful?