API reference
Table of contents

FlatSortObject

This object allows setting sorting for a column in the flat view.

Properties

{
  uniqueName: string,
  sort: string
}
Property/Type Description
uniqueName
String
The unique name of the column being sorted.
sort
String
The sorting type: "asc", "desc", or "undefined".

Example

Example with the FlatSortObject:

slice: {
  // Other slice properties
  flatSort: [
    {
      uniqueName: "Category",
      sort: "desc",
    },
    {
      uniqueName: "Price",
      sort: "asc",
    },
  ],
}