Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Form

JMap.Event.Form

Here you can manage all form event listeners.

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

Index

Modules

Functions

Functions

activate

  • activate(listenerId: string): void
  • JMap.Event.Form.activate

    Activate the listener.

    If listener was already activated, do nothing.

    If the listener was deactivated, it state is turn to activate and it will be called again when en event is emitted.

    example
    
    // activate the listener "my-form-listener"
    JMap.Event.Form.activate("my-form-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

deactivate

  • deactivate(listenerId: string): void
  • JMap.Event.Form.deactivate

    Deactivate the listener.

    If listener id doesn't exist or is already deactivated, do nothing.

    If the listener was active, it state is turn to deactivate, and it will be ignore when en event is emitted.

    example
    
    // deactivate the listener "my-form-listener"
    JMap.Event.Form.deactivate("my-form-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void

remove

  • remove(listenerId: string): void
  • JMap.Event.Form.remove

    Remove the listener.

    If the listener doesn't exist, do nothing.

    Remove the listener from JMap NG Core library. The listener is deleted and never called again after that.

    example
    
    // remove the listener "my-form-listener"
    JMap.Event.Form.remove("my-form-listener")

    Parameters

    • listenerId: string

      The listener id

    Returns void