Options
All
  • Public
  • Public/Protected
  • All
Menu

The sidebar will provide this interface in window.acrolinxSidebar.

Hierarchy

  • AcrolinxSidebar

Index

Methods

Optional checkDocumentInBatch

  • checkDocumentInBatch(documentIdentifier: string, documentContent: string, options: CheckOptions): void
  • Initiates a check for the document with the given document identifier.

    Parameters

    • documentIdentifier: string

      Identifier for the document to be checked.

    • documentContent: string

      The document to be checked.

    • options: CheckOptions

      Check options.

    Returns void

checkGlobal

  • Perform a check of the whole document. Once the check is done, AcrolinxPlugin.onCheckResult will be notified.

    acrolinxSidebar.checkGlobal('<sample>my text</sample>', {
       inputFormat: 'XML',
       requestDescription: {
         documentReference: 'myfile.xml'
       }
    });

    Parameters

    • documentContent: string

      The document you want to check.

    • options: CheckOptions

    Returns Check

    Object containing the ID of the check.

configure

  • Configures the sidebar with the specified parameters. This method can be called repeatedly after init was called.

     acrolinxSidebar.configure({
       readOnlySuggestions: true
     });

    Parameters

    Returns void

init

  • Initializes the sidebar with the specified initParameters. After calling this method, the sidebar will become ready for checking and call onInitFinished.

     acrolinxSidebar.init({
       clientSignature: 'sdfasdfiIOJEIEJIOR',
       clientComponents: [{
         id: 'com.acrolinx.myEditor'
         name:'Acrolinx for myEditor',
         version:'1.0.0.42'
       }]
     });

    Parameters

    Returns void

Optional initBatchCheck

  • Perform a batch check of the document components.

    Parameters

    Returns void

invalidateRanges

  • This function can be used to invalidate check result cards that link to invalid parts of the document. That can happen due to changes or deletions in the document.

    Parameters

    • invalidCheckedDocumentRanges: InvalidDocumentPart[]

      checkIds and offsets belonging to a previous performed check.

    Returns void

onGlobalCheckRejected

  • onGlobalCheckRejected(): void

onVisibleRangesChanged

  • Notify the sidebar of the currently displayed part of the document.

    Parameters

    Returns void

showMessage

  • showMessage(message: Message): void
  • Show a message in the Sidebar. Supported since Acrolinx Platform 2021.2 (Sidebar version 14.28).

    Parameters

    • message: Message

      The message to show.

    Returns void

Legend

  • Object literal
  • Type alias
  • Interface
  • Method
  • Enumeration

Generated using TypeDoc