File

src/modules/http/entities/metadata/metadata-sort-item.entity.intf.ts

Description

The StarkSortItem class contains the different sort criteria for the items contained in the response of a collection request performed by the StarkHttpService. This information is serialized by the service into the request query parameters and deserialized from the response in the StarkCollectionMetadata object.

Index

Properties

Properties

field
field: string
Type : string

The field on which the sorting is done.

order
order: string
Type : string

The order of the sorting on that field: ASC | DESC.

sortValue
sortValue: string
Type : string
Optional

The combination of field + order. This is the computed value that is sent in the request as query parameter. For example: title+DESC

export interface StarkSortItem {
	/**
	 * The field on which the sorting is done.
	 */
	field: string;
	/**
	 * The order of the sorting on that field: `ASC | DESC`.
	 */
	order: string;
	/**
	 * The combination of `field + order`.
	 * This is the computed value that is sent in the request as query parameter. For example: `title+DESC`
	 */
	sortValue?: string;
}

results matching ""

    No results matching ""