Hierarchy

Hierarchy (view full)

Constructors

Methods

Constructors

Methods

  • Executes the static count method and returns IgxSummaryResult[].

    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[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
    const result = [];
    result.push({
    key: "test",
    label: "Test",
    summaryResult: IgxSummaryOperand.count(data)
    });
    return result;
    }
    }
    this.grid.getColumnByName('ColumnName').summaries = CustomSummary;

    Memberof

    IgxSummaryOperand

    Parameters

    • Optional data: any[]
    • Optional _allData: any[]
    • Optional _fieldName: string
    • Optional _groupRecord: IgcGroupByRecord

    Returns IgcSummaryResult[]

  • Counts all the records in the data source. If filtering is applied, counts only the filtered records.

    IgxSummaryOperand.count(dataSource);
    

    Memberof

    IgxSummaryOperand

    Parameters

    • data: any[]

    Returns number