All documentation
  • API Reference for older versions
  • FlatSortObject

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

    Properties

    {
      uniqueName: string,
      sort: string
    }
    Property/TypeDescription
    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",
        },
      ],
    }