changeLayoutEnvironment

Typecommand
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
changeLayoutEnvironment <pLongId>, <pNewEnvironment>
Associationscom.livecode.library.responsivelayout
Summary

It will change the ResponsiveLayout environment so that you can lay out the interface for the real environment from the IDE.

Parameters
NameTypeDescription
pLongId

The long id of an object on the stack that you want to change the environment.

pNewEnvironment

This parameter supports the following values mobile, tablet or desktop.

Example
changeLayoutEnvironment the long id of this card, "mobile"
changeLayoutEnvironment the long id of target,"tablet"
changeLayoutEnvironment the long id of topStack(),"desktop"
Description

Use the changeLayoutEnvironment command to design how your application's UI looks in these three environments. Since you can have a different design for each of these.

Important: This command works only in the IDE, since it is to facilitate the design of the interface. This environment change will only affect the ResponsiveLayout library.