AllPagesHelpers

API reference for the AllPagesHelpers type.

Helpers for use when reading all pages of the design.

Methods

openPagefunction
Required

Reads (and optionally updates) a page of the user's design.

Parameters

pageRefAbsolutePageRef
Required

Reference to the page to be read.

typestringRead-only
Required

The type of page.

The only valid value is "absolute".

lockedbooleanRead-only
Required

If true, the page is locked and cannot be modified.

callbackDesignOpenPageCallback<AbsolutePage>
Required

A callback for operating on the page of the design.

For more information, see AbsolutePage.

Parameters

responseDesignEditing.OpenPageResult<AbsolutePage>
Required

Result received by the openPage callback.

pageDesignEditing.Page
Required

The 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.

typestringRead-only
Required

The only valid value is "unsupported".

helpersPageHelpers
Required

These are various utilities that allow apps to do more complex operations on the page.

For more information, see PageHelpers.

Returns

Promise<void>

Returns

A response indicating whether the callback was executed. This is a Promise that resolves with the following object:

The response from openPage if the callback was executed.

statusstring

The only valid value is "executed".

The response from openPage if the callback was not executed.

statusstring

The only valid value is "skipped".

reasonstring

Reason that the callback was not executed.

Parameters

pageRefUnsupported
Required

Represents something that's not supported by the Apps SDK.

typestringRead-only
Required

The only valid value is "unsupported".

callbackDesignOpenPageCallback<Unsupported>
Required

A callback for operating on a page of the design.

Parameters

responseDesignEditing.OpenPageResult<Unsupported>
Required

Result received by the openPage callback.

pageDesignEditing.Page
Required

The 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.

typestringRead-only
Required

The only valid value is "unsupported".

helpersPageHelpers
Required

These are various utilities that allow apps to do more complex operations on the page.

For more information, see PageHelpers.

Returns

Promise<void>

Returns

The response from openPage indicating whether the callback was executed. This is a Promise that resolves with the following object:

The response from openPage if the callback was executed.

statusstring

The only valid value is "executed".

The response from openPage if the callback was not executed.

statusstring

The only valid value is "skipped".

reasonstring

Reason that the callback was not executed.

Parameters

pageRefPageRef
Required

A reference to a page.

For more information, see PageRef.

callbackDesignOpenPageCallback
Required

A callback for operating on a page of the design.

Parameters

responseDesignEditing.OpenPageResult<DesignEditing.Page>
Required

Result received by the openPage callback.

pageDesignEditing.Page
Required

The 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.

typestringRead-only
Required

The only valid value is "unsupported".

helpersPageHelpers
Required

These are various utilities that allow apps to do more complex operations on the page.

For more information, see PageHelpers.

Returns

Promise<void>

Returns

The response from openPage indicating whether the callback was executed. This is a Promise that resolves with the following object:

The response from openPage if the callback was executed.

statusstring

The only valid value is "executed".

The response from openPage if the callback was not executed.

statusstring

The only valid value is "skipped".

reasonstring

Reason that the callback was not executed.