onRequestSendNotify event not available on @onlyoffice/document-editor-angular

I am trying to use the onRequestSendNotify event.

Hello @subbu

This event is supported by the Angular component:

However, you cannot utilize it like component parameter as in this documentation:
https://api.onlyoffice.com/docs/docs-api/get-started/frontend-frameworks/angular/#onlyoffice-docs-angular-component-api

For instance, like that:

config: IConfig = {
    ... // all config
  }

<document-editor 
  id="docxForComments" 
  documentServerUrl="http://documentserver/"
  [config]="config"
  [events_onRequestSendNotify]="onRequestSendNotify"
></document-editor>

Instead you should pass it in config.event parameter:

config: IConfig = {
    ... // all config
    events: {
          onRequestSendNotify: onRequestSendNotify
    }
  }

<document-editor 
  id="docxForComments" 
  documentServerUrl="http://documentserver/"
  [config]="config"
></document-editor>

Hope it helps.

1 Like