Skip to content

@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?

optional autoLoad: boolean

Defined in: src/slick/remoteview.ts:2016

Automatically load data (call populate) on initialization


contentType?

optional contentType: string

Defined in: src/slick/remoteview.ts:2018

HTTP content type for service requests


dataType?

optional dataType: string

Defined in: src/slick/remoteview.ts:2020

Expected data type of the service response


displayTotalsRow?

optional displayTotalsRow: 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?

optional errormsg: string

Defined in: src/slick/remoteview.ts:2022

Error message to display when requests fail


filter?

optional filter: RemoteViewFilter<TItem>

Defined in: src/slick/remoteview.ts:2024

Filter criteria or function to apply to the data


getItemMetadata()?

optional getItemMetadata: (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?

optional groupItemMetadataProvider: GroupItemMetadataProvider

Defined in: src/slick/remoteview.ts:2028

Provider for group item metadata in grouped views


idField?

optional idField: string

Defined in: src/slick/remoteview.ts:2038

Name of the field containing unique item identifiers


indentDataRows?

optional indentDataRows: 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?

optional indeterminatePaging: 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?

optional localSort: boolean

Defined in: src/slick/remoteview.ts:2040

Whether to perform sorting locally instead of server-side


method?

optional method: string

Defined in: src/slick/remoteview.ts:2042

HTTP method to use for service requests


onAjaxCall?

optional onAjaxCall: RemoteViewAjaxCallback<TItem>

Defined in: src/slick/remoteview.ts:2044

Callback function invoked before AJAX calls are made


onProcessData?

optional onProcessData: RemoteViewProcessCallback<TItem>

Defined in: src/slick/remoteview.ts:2046

Callback function to process data received from the server


onSubmit?

optional onSubmit: CancellableViewCallback<TItem>

Defined in: src/slick/remoteview.ts:2048

Callback function invoked before submitting service requests


params?

optional params: Record<string, object>

Defined in: src/slick/remoteview.ts:2050

Additional parameters to include in service requests


rowsPerPage?

optional rowsPerPage: number

Defined in: src/slick/remoteview.ts:2052

Number of rows to display per page (0 for no paging)


seekToPage?

optional seekToPage: number

Defined in: src/slick/remoteview.ts:2072

Initial page number to seek to on first load


serverAggregates?

optional serverAggregates: 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?

optional sortBy: string | string[]

Defined in: src/slick/remoteview.ts:2074

Initial sort criteria for the data


url?

optional url: string

Defined in: src/slick/remoteview.ts:2076

URL of the service endpoint for data requests