Hierarchy

Hierarchy (view full)

Constructors

Methods

  • Executes the static methods 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 CustomDateSummary extends IgxDateSummaryOperand {
    constructor() {
    super();
    }
    public operate(data: any[], allData: any[], fieldName: string, groupRecord: IGroupByRecord): IgxSummaryResult[] {
    const result = super.operate(data, allData, fieldName, groupRecord);
    result.push({
    key: "deadline",
    label: "Deadline Date",
    summaryResult: this.calculateDeadline(data);
    });
    return result;
    }
    }
    this.grid.getColumnByName('ColumnName').summaries = CustomDateSummary;

    Memberof

    IgxDateSummaryOperand

    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

  • Returns the earliest date value in the data records. If filtering is applied, returns the latest date value in the filtered data records.

    IgxDateSummaryOperand.earliest(data);
    

    Memberof

    IgxDateSummaryOperand

    Parameters

    • data: any[]

    Returns void

  • Returns the latest date value in the data records. If filtering is applied, returns the latest date value in the filtered data records.

    IgxDateSummaryOperand.latest(data);
    

    Memberof

    IgxDateSummaryOperand

    Parameters

    • data: any[]

    Returns void