Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Event.Extension.on

Here you have all available high level events on which you can attach a listener.

Index

Functions

beforeUnregistration

  • beforeUnregistration(listenerId: string, fn: function): void
  • JMap.Event.Extension.on.beforeUnregistration

    This event is triggered just before an extension will be unregistered.

    example
    
    // log a message in the console each time an extension will be unregistered
    JMap.Event.Extension.on.beforeUnregistration(
      "custom-core-extension-beforeUnregistration",
      params => console.log(`Extension id="${params.extensionId}" will be unregistered`)
    )

    Parameters

    Returns void

registration

  • registration(listenerId: string, fn: function): void
  • JMap.Event.Extension.on.registration

    This event is triggered when an extension is registered.

    example
    
    // log a message in the console each time an extension has been registered
    JMap.Event.Extension.on.registration(
      "custom-core-extension-registration",
      params => console.log(`Extension id="${params.extensionId}" has been registered`)
    )

    Parameters

    Returns void

unregistration

  • unregistration(listenerId: string, fn: function): void
  • JMap.Event.Extension.on.unregistration

    This event is triggered when an extension is unregistered.

    example
    
    // log a message in the console each time an extension has been unregistered
    JMap.Event.Extension.on.unregistration(
      "custom-core-extension-unregistration",
      params => console.log(`Extension id="${params.extensionId}" has been unregistered`)
    )

    Parameters

    Returns void