Options
All
  • Public
  • Public/Protected
  • All
Menu

JMap.Application.Event.UI.on

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

Index

Functions

sidePanelVisibilityChanged

  • sidePanelVisibilityChanged(listenerId: string, fn: function): void
  • JMap.Application.Event.UI.on.sidePanelVisibilityChanged

    This event is triggered when the side panel is closed or opened.

    example
    
    // log a message in the console when the side panel is closed or opened
    JMap.Application.Event.UI.on.sidePanelVisibilityChanged(
      "custom-side-panel-visibility-changed",
      params => console.log(`New panel visibility: ${params.isVisible}"`)
    )

    Parameters

    Returns void

sidePanelWidthChanged

  • sidePanelWidthChanged(listenerId: string, fn: function): void
  • JMap.Application.Event.UI.on.sidePanelWidthChanged

    This event is triggered when the side panel width changes.

    example
    
    // log a message in the console when the side panel width changes
    JMap.Application.Event.UI.on.sidePanelWidthChanged(
      "custom-side-panel-width-changed",
      params => console.log(`New panel width ${params.width}"`)
    )

    Parameters

    Returns void