Class IgxDateSummaryOperand

Hierarchy

Index

Constructors

Methods

Constructors

constructor

Methods

operate

  • operate(data?: any[], allData?: any[], fieldName?: string): IgxSummaryResult[]
  • 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): IgxSummaryResult[] {
        const result = super.operate(data, allData, fieldName);
        result.push({
          key: "deadline",
          label: "Deadline Date",
          summaryResult: this.calculateDeadline(data);
        });
        return result;
      }
    }
    this.grid.getColumnByName('ColumnName').summaries = CustomDateSummary;
    
    @memberof

    IgxDateSummaryOperand

    Parameters

    • data: any[] = []
    • allData: any[] = []
    • Optional fieldName: string

    Returns IgxSummaryResult[]

Static count

  • count(data: any[]): number

Static earliest

  • earliest(data: any[]): any

Static latest

  • latest(data: any[]): any