rmapi-js
    Preparing search index...

    Class ClientHighlights

    a page's highlights read through a Client, with the document's reference, to edit and push back

    It reads and edits as a PageHighlights does, and pushes, pulls, merges and gives its file back as a ClientMetadata does. A page without them reads as one with none.

    Hierarchy (View Summary)

    Index
    id: string

    the page's id

    • get hasEdits(): boolean

      whether an edit changes the file from the version as read

      Returns boolean

    • remove a key of the file: a key the core reads clears its field, or sets it to what a file without the key reads it as

      Parameters

      • key: string

      Returns this

      Warning: as for setExtra, this can leave the file at odds with itself. Prefer the field's own setter.

      ValidationError if key names a field the file must have; the file is left as it was

    • set a key of the file: a key the core reads sets its field, and any other is kept in extra

      Parameters

      • key: string
      • value: Json

      Returns this

      Warning: a key the core reads is written as given, past the rules its own setter keeps, so it can leave the file at odds with itself, such as a pageCount that does not count the pages listed. Prefer the field's own setter, such as setPages for the page keys.

      ValidationError if value is not a value of the field key names; the file is left as it was