Class IgxDateSummaryOperand

Hierarchy

Methods

operate

  • 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[]): IgxSummaryResult[] {
        const result = [];
        result.push({
          key: "latest",
          label: "Latest Date",
          summaryResult: IgxDateSummaryOperand.latest(data)
        });
        return result;
      }
    }
    this.grid.getColumnByName('ColumnName').summaries = CustomDateSummary;
    memberof

    IgxDateSummaryOperand

    Parameters

    • Default value data: any[] = []

    Returns IgxSummaryResult[]

Static count

  • count(data: any[]): number

Static earliest

  • earliest(data: any[]): any
  • 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 any

Static latest

  • latest(data: any[]): any
  • 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 any