• JMap.Event.Project.on.projectsChange

    This event is triggered after the entire project list has been fetched from server.

    It happens once after the user session has been validated and set.

    Parameters

    • listenerId: string

      Your listener id (must be unique for all project events)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time a new project is loaded will display the new project id in the console
    JMap.Event.Project.on.projectsChange(
    "custom-projects-change",
    params => console.log(`Project count = "${params.projects.length}"`)
    )