Skip to content

Commit

Permalink
GroupingGetterFunction should be allowed to return arbitrary value (#957
Browse files Browse the repository at this point in the history
)

Underlying slickgrid logic only takes into account equality between values
returned for grouping individial rows. Getter thus does not need to
return `string` but might return arbitrary value (e.g. string, number, Date).
  • Loading branch information
jesenko authored Dec 29, 2023
1 parent 508aa7b commit 72af590
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/grouping.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { GroupingComparerItem } from './groupingComparerItem.interface';
import { GroupingFormatterItem } from './groupingFormatterItem.interface';
import { SortDirectionNumber } from './sortDirectionNumber.enum';

export type GroupingGetterFunction<T = any> = (value: T) => string;
export type GroupingGetterFunction<T = any> = (value: T) => any;

export interface Grouping<T = any> {
/** Grouping Aggregators array */
Expand Down

0 comments on commit 72af590

Please sign in to comment.