openDesign
Reads a specified part of the user's design and returns all elements in that part.
Parameters
options
DesignContextOptions
RequiredOptions for configuring how the design is read.
type
string
RequiredThe type of context.
This must be "current_page"
.
callback
DesignOpenCallback
RequiredA callback for operating on the design.
Parameters
session
DesignEditing.CurrentPageResult
RequiredThe result of reading part of a design.
page
DesignEditing.Page
RequiredThe current page of the design.
A page with either fixed or unbounded dimensions.
For more information, see AbsolutePage.
Represents something that's not supported by the Apps SDK.
type
string
Read-onlyRequiredThis must be "unsupported"
.
helpers
DesignEditing.PageHelpers
RequiredThese are various utilities that allow apps to do more complex operations on the page.
For more information, see PageHelpers.
sync
function
RequiredSaves any changes made during the session while keeping the transaction open.
- Any changes in the session are only reflected in the design after this method is called.
- Once this method is called, further changes in the session can still be made.
Returns
Promise<void>
Returns
Promise<void>
Returns
Promise<void>