• JMap.Event.Query.on.beforeSubmit

    This event is triggered when a query is submitted, before the call to the server is made.

    Parameters

    • listenerId: string

      Your listener id (must be unique)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // log a message in the console once the button submit is clicked.
    JMap.Event.Query.on.beforeSubmit(
    "custom-query-before-submit",
    params => console.log("A query to the server will be done", params)
    )