Search Docs
Loading...
Skip to content

Type Alias: SpreadAppendPageAction

type SpreadAppendPageAction = (options) => number | null;

Action function for adding a page the size of the last page at the end of a spread. Returns the id of the new page slice, which the editor shows as a page of the spread, or null when the block holds no page slices. cesdk.actions.run returns a Promise, so await its result.

Parameters#

Parameter Type Description
options { spread: number; } -
options.spread number The spread: a page that holds page slices.

Returns#

number | null