Search Docs
Loading...
Skip to content

Type Alias: SpreadInsertPageAction

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

Action function for adding a page beside a page of a spread, with its size. Returns the id of the new page slice, which the editor shows as a page of the spread, or null when beside is no page slice. cesdk.actions.run returns a Promise, so await its result.

Parameters#

Parameter Type Description
options { beside: number; position: "before" "after"; }
options.beside number The page slice, a page of the spread, to add the new page beside.
options.position "before" "after"

Returns#

number | null