@mantlebee/ts-data
    Preparing search index...

    Type Alias SortExtensionEvents<TItem>

    SortExtensionEvents: EventsDefinition & {
        addSort: [Sort<TItem>, List<Sort<TItem>>];
        clearSorts: [];
        removeSort: [KeyOf<TItem>, List<Sort<TItem>>];
        setSorts: [List<Sort<TItem>>];
        sortsChange: [List<Sort<TItem>>, boolean];
    }

    Events of a SortExtension.

    Type Parameters

    • TItem = Any

      Type of the items.

    Type Declaration

    • addSort: [Sort<TItem>, List<Sort<TItem>>]

      Added sort, current sorts (unchanged when the limit was reached).

    • clearSorts: []
    • removeSort: [KeyOf<TItem>, List<Sort<TItem>>]

      Removed field, current sorts.

    • setSorts: [List<Sort<TItem>>]

      Current sorts.

    • sortsChange: [List<Sort<TItem>>, boolean]

      [debounced] Any change of the sorts: current sorts, whether there is any.