Skip to main content
All docs
V24.2

IRemoteService<TResponse> Interface

A remote service used to communicate with the server side.

Declaration

export interface IRemoteService<TResponse = any>

Type Parameters

Name Description
TResponse

A type of the request response.

Inheritance

IRemoteService<TResponse>

Properties

getFromServer Property

Requests data from the server using the POST method.

Declaration

getFromServer: (url: string, data?: Object, queryOptions?: Object, abortController?: AbortController) => TResponse

Property Value

Type Description
(url: string, data?: Object, queryOptions?: Object, abortController?: AbortController) => TResponse

A type of the request response.

performPostback Property

Performs export requests to the server.

Declaration

performPostback: (url: string, args: Object, abortController?: AbortController) => JQueryPromise<any>

Property Value

Type Description
(url: string, args: Object, abortController?: AbortController) => JQueryPromise<any>

A JQuery Promise object that is resolved after the action is completed.

postToServer Property

Posts data to the server using the POST method.

Declaration

postToServer: (url: string, data?: Object, abortController?: AbortController) => TResponse

Property Value

Type Description
(url: string, data?: Object, abortController?: AbortController) => TResponse

A type of a request response.