Back to Devexpress

IRemoteService<TResponse> Interface

dashboard-js-devexpress-dot-dashboard-dot-iremoteservice-1.md

latest1.7 KB
Original Source

IRemoteService<TResponse> Interface

A remote service used to communicate with the server side.

Declaration

ts
export interface IRemoteService<TResponse = any>

Type Parameters

NameDescription
TResponse

A type of the request response.

|

Inheritance

IRemoteService<TResponse> AjaxRemoteService

FetchRemoteService

Properties

getFromServer Property

Requests data from the server using the POST method.

Declaration

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

Property Value

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

A type of the request response.

|

performPostback Property

Performs export requests to the server.

Declaration

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

Property Value

TypeDescription
(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

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

Property Value

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

A type of a request response.

|