Function getCallbackWrapper

  • This is used to automatically parse returned JSON and call another success function passing that parsed JSON.

    Type Parameters

    • T = any

    Parameters

    • fn: Function

      The callback function to wrap.

    • Optional scope: any

      The scope for the callback function.

    • Optional isErrorCallback: boolean

      Set to true if the function is an error callback. If true, and you do not provide a separate callback, alert will popup showing the error message.

    • Optional responseTransformer: ((json?) => T)

      Function to be invoked to transform the response object before invoking the primary callback function.

        • (json?): T
        • Parameters

          • Optional json: any

          Returns T

    Returns AjaxHandler

Generated using TypeDoc