@serenity-is/corelib / RemoteViewOptions
Interface: RemoteViewOptions<TItem>
Defined in: src/slick/remoteview.ts:1910
Options for configuring a RemoteView instance
Type Parameters
TItem
TItem = any
Properties
autoLoad?
optionalautoLoad:boolean
Defined in: src/slick/remoteview.ts:1912
Automatically load data (call populate) on initialization
contentType?
optionalcontentType:string
Defined in: src/slick/remoteview.ts:1914
HTTP content type for service requests
dataType?
optionaldataType:string
Defined in: src/slick/remoteview.ts:1916
Expected data type of the service response
errormsg?
optionalerrormsg:string
Defined in: src/slick/remoteview.ts:1918
Error message to display when requests fail
filter?
optionalfilter:RemoteViewFilter<TItem>
Defined in: src/slick/remoteview.ts:1920
Filter criteria or function to apply to the data
getItemMetadata()?
optionalgetItemMetadata: (item,row) =>ItemMetadata<TItem>
Defined in: src/slick/remoteview.ts:1922
Callback function to get metadata for individual items
Parameters
item
TItem
row
number
Returns
ItemMetadata<TItem>
groupItemMetadataProvider?
optionalgroupItemMetadataProvider:GroupItemMetadataProvider
Defined in: src/slick/remoteview.ts:1924
Provider for group item metadata in grouped views
idField?
optionalidField:string
Defined in: src/slick/remoteview.ts:1926
Name of the field containing unique item identifiers
indeterminatePaging?
optionalindeterminatePaging:boolean
Defined in: src/slick/remoteview.ts:1950
Whether to page without the total number of the rows, by asking the server whether there are more rows after the page, which is faster for large tables. Default is false.
localSort?
optionallocalSort:boolean
Defined in: src/slick/remoteview.ts:1928
Whether to perform sorting locally instead of server-side
method?
optionalmethod:string
Defined in: src/slick/remoteview.ts:1930
HTTP method to use for service requests
onAjaxCall?
optionalonAjaxCall:RemoteViewAjaxCallback<TItem>
Defined in: src/slick/remoteview.ts:1932
Callback function invoked before AJAX calls are made
onProcessData?
optionalonProcessData:RemoteViewProcessCallback<TItem>
Defined in: src/slick/remoteview.ts:1934
Callback function to process data received from the server
onSubmit?
optionalonSubmit:CancellableViewCallback<TItem>
Defined in: src/slick/remoteview.ts:1936
Callback function invoked before submitting service requests
params?
optionalparams:Record<string,object>
Defined in: src/slick/remoteview.ts:1938
Additional parameters to include in service requests
rowsPerPage?
optionalrowsPerPage:number
Defined in: src/slick/remoteview.ts:1940
Number of rows to display per page (0 for no paging)
seekToPage?
optionalseekToPage:number
Defined in: src/slick/remoteview.ts:1952
Initial page number to seek to on first load
serverAggregates?
optionalserverAggregates:boolean
Defined in: src/slick/remoteview.ts:1945
Whether to ask the server for the aggregates of the summary options, calculated from all the rows the request matches and not only from the current page, which only a server that supports them returns. Default is false.
sortBy?
optionalsortBy:string|string[]
Defined in: src/slick/remoteview.ts:1954
Initial sort criteria for the data
url?
optionalurl:string
Defined in: src/slick/remoteview.ts:1956
URL of the service endpoint for data requests