createLayoutSnapshot

Typecommand
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
createLayoutSnapshot <pLongId>, [<pPropertyNames>]
Associationscom.livecode.library.responsivelayout
Summary

Saves the value of dynamic properties or a specific property of an object.

Parameters
NameTypeDescription
pLongId

The long id of an object, this object can be a card or any other control inside the card.

pPropertyNames

This parameter is a list of the names of the properties you want to set for the current layout breakpoint. If this parameter is not passed, only the values of the properties used by the ResponsiveLayout library will be saved.

Example
createLayoutSnapshot the long id of target
createLayoutSnapshot the long id of button 1 of this card, "visible"
createLayoutSnapshot the long id of button 1 of this card, "visible" & return & "rect" & return & "label"
Description

Use the createLayoutSnapshot command to save the dynamic layout properties that an object passed in has at the current breakpoint.

Calling this command will save all the dynamic properties that the library uses for the current breakpoint. If you pass in the second parameter the name of a property of the object. The value of this will be recorded and when the card enters the interruption point its value will be restored.

Use this command to make your layout snap to the breakpoint of the current layout.