Member Junction
    Preparing search index...

    Interface MJUserViewEntity_IGridAggregate

    Configuration for a single aggregate expression in the entity data grid.

    Used inside MJUserViewEntity_IGridAggregatesConfig.expressions. Each aggregate can be displayed as a pinned-row value under a column or as a summary card in a panel. Supports both explicit SQL expressions and AI-generated expressions via smartPrompt.

    interface MJUserViewEntity_IGridAggregate {
        column?: string;
        conditionalStyles?: MJUserViewEntity_IAggregateConditionalStyle[];
        description?: string;
        displayType: "column" | "card";
        enabled?: boolean;
        expression: string;
        format?: MJUserViewEntity_IAggregateValueFormat;
        icon?: string;
        id?: string;
        label: string;
        order?: number;
        smartPrompt?: string;
    }
    Index

    Properties

    column?: string

    For 'column' displayType: which column to display under

    Conditional styling rules (applied in order, first match wins)

    description?: string

    Optional description (shown in tooltip)

    displayType: "column" | "card"

    Display type: 'column' (pinned row) or 'card' (summary panel)

    enabled?: boolean

    Whether this aggregate is enabled (visible)

    expression: string

    SQL expression to calculate (e.g. "SUM(OrderTotal)", "COUNT(*)")

    Value formatting

    icon?: string

    Icon for card display (Font Awesome class)

    id?: string

    Unique ID for this aggregate (auto-generated if not provided)

    label: string

    Human-readable label

    order?: number

    Sort order for display (lower = earlier)

    smartPrompt?: string

    Natural language prompt for AI-generated expression