Executes the static count method and returns IgxSummaryResult[].
count
IgxSummaryResult[]
interface IgxSummaryResult { key: string; label: string; summaryResult: any; }
Can be overridden in the inherited classes to provide customization for the summary.
summary
class CustomSummary extends IgxSummaryOperand { constructor() { super(); } public operate(data?: any[]): IgxSummaryResult[] { const result = []; result.push({ key: "test", label: "Test", summaryResult: IgxSummaryOperand.count(data) }); return result; } } this.grid.getColumnByName('ColumnName').summaries = CustomSummary;
IgxSummaryOperand
Counts all the records in the data source. If filtering is applied, counts only the filtered records.
IgxSummaryOperand.count(dataSource);
Executes the static
countmethod and returnsIgxSummaryResult[].interface IgxSummaryResult { key: string; label: string; summaryResult: any; }Can be overridden in the inherited classes to provide customization for the
summary.class CustomSummary extends IgxSummaryOperand { constructor() { super(); } public operate(data?: any[]): IgxSummaryResult[] { const result = []; result.push({ key: "test", label: "Test", summaryResult: IgxSummaryOperand.count(data) }); return result; } } this.grid.getColumnByName('ColumnName').summaries = CustomSummary;IgxSummaryOperand