Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Application.Event.Extension

Here you can manage all JMap NG App extension event listeners.

Click to see all events available: *JMap.Application.Event.Extension.on*.

Index

Modules

Functions

Functions

activate

  • activate(listenerId: string): void
  • JMap.Application.Event.Extension.activate

    Activates the listener.

    If the listener is already active, does nothing.

    If the listener is inactive, it will be reactivated and will be called again ...

    example
    
    // activate the listener "my-extension-listener"
    JMap.Application.Event.Extension.activate("my-extension-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

deactivate

  • deactivate(listenerId: string): void
  • JMap.Application.Event.Extension.deactivate

    Deactivates the listener.

    If the listener id doesn't exist or if the listener is already inactive, does nothing.

    If the listener is active, it will be deactivated and will be ignored ...

    example
    
    // deactivate the listener "my-extension-listener"
    JMap.Application.Event.Extension.deactivate("my-extension-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

remove

  • remove(listenerId: string): void
  • JMap.Application.Event.Extension.remove

    Removes the listener.

    If the listener doesn't exist, does nothing.

    Removes the listener from JMap NG App. The listener is deleted and never called again after that.

    example
    
    // remove the listener "my-extension-listener"
    JMap.Application.Event.Extension.remove("my-extension-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void