@syncfusion/ej2-documenteditor
Version:
Feature-rich document editor control with built-in support for context menu, options pane and dialogs.
68 lines (67 loc) • 1.74 kB
TypeScript
import { XmlHttpRequestEventArgs } from "./index";
/**
* @private
*/
export declare class XmlHttpRequestHandler {
/**
* Specifies the URL to which request to be sent.
*
* @default null
*/
url: string;
/**
* @private
*/
contentType: string;
/**
* Specifies the responseType to which request response.
*
* @default null
*/
responseType: XMLHttpRequestResponseType;
/**
* A boolean value indicating whether the request should be sent asynchronous or not.
*
* @default true
*/
mode: boolean;
xmlHttpRequest: XMLHttpRequest;
/**
* @private
*/
customHeaders: Object[];
/**
* Send the request to server
*
* @param {object} jsonObject - To send to service
*/
send(jsonObject: object, httpRequestEventArgs?: XmlHttpRequestEventArgs, isAsync?: boolean): void;
private sendRequest;
private stateChange;
private error;
/**
* Specifies callback function to be triggered after XmlHttpRequest is succeeded.
* The callback will contain server response as the parameter.
*
* @event
*/
onSuccess: Function;
/**
* Specifies callback function to be triggered after XmlHttpRequest is got failed.
* The callback will contain server response as the parameter.
*
* @event
*/
onFailure: Function;
/**
* Specifies callback function to be triggered after XmlHttpRequest is got error.
* The callback will contain server response as the parameter.
*
* @event
*/
onError: Function;
private successHandler;
private failureHandler;
private errorHandler;
private setCustomAjaxHeaders;
}