@serenity-is/corelib / RemoteViewOptions
Interface: RemoteViewOptions<TItem>
Defined in: src/slick/remoteview.ts:2014
Options for configuring a RemoteView instance
Type Parameters
TItem
TItem = any
Properties
autoLoad?
optionalautoLoad:boolean
Defined in: src/slick/remoteview.ts:2016
Automatically load data (call populate) on initialization
contentType?
optionalcontentType:string
Defined in: src/slick/remoteview.ts:2018
HTTP content type for service requests
dataType?
optionaldataType:string
Defined in: src/slick/remoteview.ts:2020
Expected data type of the service response
displayTotalsRow?
optionaldisplayTotalsRow:boolean|"groupheader"
Defined in: src/slick/remoteview.ts:2065
Where the totals of a group, e.g. the aggregates of the summary columns, are shown by default:
on a row of their own (true), on the row of the group itself ("groupheader"), or not at all
(false). It is the default of the grouping levels that don't set it, which a grid can override
in its getViewOptions, like the other options of the view. When it is not set, the
groupingInfoDefaults of RemoteView apply, which is true, i.e. a row of their own.
errormsg?
optionalerrormsg:string
Defined in: src/slick/remoteview.ts:2022
Error message to display when requests fail
filter?
optionalfilter:RemoteViewFilter<TItem>
Defined in: src/slick/remoteview.ts:2024
Filter criteria or function to apply to the data
getItemMetadata()?
optionalgetItemMetadata: (item,row) =>ItemMetadata<TItem>
Defined in: src/slick/remoteview.ts:2026
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:2028
Provider for group item metadata in grouped views
idField?
optionalidField:string
Defined in: src/slick/remoteview.ts:2038
Name of the field containing unique item identifiers
indentDataRows?
optionalindentDataRows:boolean
Defined in: src/slick/remoteview.ts:2036
Whether the first cell of the data rows inside a group is indented according to the grouping
level, so that the data rows of nested groups line up under their group rows, which is also
an option of GroupItemMetadataProvider (see indentDataRows). It is passed to the provider a
view creates for itself; when not set, the provider defaults are used, which is true. Data
rows are at the leaf level, so two levels of grouping indent them by two steps.
indeterminatePaging?
optionalindeterminatePaging:boolean
Defined in: src/slick/remoteview.ts:2070
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:2040
Whether to perform sorting locally instead of server-side
method?
optionalmethod:string
Defined in: src/slick/remoteview.ts:2042
HTTP method to use for service requests
onAjaxCall?
optionalonAjaxCall:RemoteViewAjaxCallback<TItem>
Defined in: src/slick/remoteview.ts:2044
Callback function invoked before AJAX calls are made
onProcessData?
optionalonProcessData:RemoteViewProcessCallback<TItem>
Defined in: src/slick/remoteview.ts:2046
Callback function to process data received from the server
onSubmit?
optionalonSubmit:CancellableViewCallback<TItem>
Defined in: src/slick/remoteview.ts:2048
Callback function invoked before submitting service requests
params?
optionalparams:Record<string,object>
Defined in: src/slick/remoteview.ts:2050
Additional parameters to include in service requests
rowsPerPage?
optionalrowsPerPage:number
Defined in: src/slick/remoteview.ts:2052
Number of rows to display per page (0 for no paging)
seekToPage?
optionalseekToPage:number
Defined in: src/slick/remoteview.ts:2072
Initial page number to seek to on first load
serverAggregates?
optionalserverAggregates:boolean
Defined in: src/slick/remoteview.ts:2057
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:2074
Initial sort criteria for the data
url?
optionalurl:string
Defined in: src/slick/remoteview.ts:2076
URL of the service endpoint for data requests