The PageController is responsible for all communication regarding Pages. Methods inside this controller can be called by window.SDK.page.{method-name}

Hierarchy

  • PageController

Methods

  • This method will set the height of the page to a specific value. This only works if the document is a project.

    Returns

    Parameters

    • id: string

      the id of a specific page

    • height: string

      the string value that will be calculated (f.e. 1+1 will result in 2). The notation is in pixels

    Returns Promise<EditorResponse<null>>

  • This method will set the width of the page to a specific value. This only works if the document is a project.

    Returns

    Parameters

    • id: string

      the id of a specific page

    • width: string

      the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels

    Returns Promise<EditorResponse<null>>

Generated using TypeDoc