LocalSorting Plugin Reference

A plugin that performs local data sorting.

User Reference

Dependencies

Properties

Name Type Default Description
getColumnCompare (columnName: string) => Compare | undefined   A function implementing custom sorting. See the Sorting guide for more information.

Interfaces

Compare

A function with the following signature (a: any, b: any) => number

Plugin Developer Reference

Imports

Name Plugin Type Description
rows Getter Array<any> Rows to be sorted.
sorting Getter Array<Sorting> Column sorting to be applied.
getCellValue Getter (row: any, columnName: string) => any The function used to get a cell value.
isGroupRow? Getter (row: any) => boolean A function used to identify a group row within ordinary rows.
getRowLevelKey? Getter (row: any) => string? A function used to get row level key.

Exports

Name Plugin Type Description
rows Getter Array<any> Rows with the applied sorting.