rmapi-js
    Preparing search index...

    Class PageData

    a document's .pagedata: the template name of each page, in page order

    Its edits are recorded like Metadata's, each page's name its own field.

    Hierarchy (View Summary)

    Index
    • get hasEdits(): boolean

      whether an edit changes the file from the version as read

      Returns boolean

    • put this file's edits on newer, a copy read since, and hold that, returning the pages both changed, each by its index, as Metadata.merge does

      Parameters

      Returns string[]

    • set the template of the page at index, from zero, where the index one past the last page adds a page; a TypeError if name holds a newline

      Parameters

      • index: number
      • name: string

      Returns this

      RangeError if index is not an integer more than one past the last page

    • set the template of every page; a TypeError if a name holds a newline

      Parameters

      • templates: string[]

      Returns this

    • the template name of each page

      Returns string[]

    • the file with its edits made, as the account holds it

      Returns Uint8Array

    • a .pagedata naming templates, set as edits of a document that has none; a TypeError if a name holds a newline

      Parameters

      • templates: string[]

      Returns PageData