openDesign
Reads (and optionally updates) a specified part of the user's design.
Parameters
options
DesignOpenOptions_2
Options for configuring how the design is read.
Options for configuring how the current page of the design is read.
type
string
The type of context.
The only valid value is "current_page"
.
Options for configuring how all pages of the design are read.
type
string
The type of context.
The only valid value is "all_pages"
.
callback
DesignOpenCallback_2
A callback for operating on the design.
A callback for operating on the current page of the design.
Parameters
session
DesignEditing.CurrentPageSession
Session received by the openDesign
callback when opening the current page.
page
DesignEditing.Page
The 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-onlyThe only valid value is "unsupported"
.
helpers
DesignEditing.PageHelpers
These are various utilities that allow apps to do more complex operations on the page.
For more information, see PageHelpers.
sync
function
Saves any changes made during the session while keeping the session 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>
A callback for operating on all pages of the design.
Parameters
session
DesignEditing.AllPagesSession
Session received by the openDesign
callback when opening all pages.
pageRefs
DesignEditing.PageRefList
References to all pages of the design.
For more information, see PageRefList.
helpers
DesignEditing.AllPagesHelpers
These are various utilities that allow apps to do more complex operations on the page.
For more information, see AllPagesHelpers.
sync
function
- 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>