@helix-x/datagrid-ui - v0.1.2
    Preparing search index...

    Function resolveValue

    • Resolves a cell's raw value from its row.

      Tries, in order: ColumnDef.valueGetter, the dotted field path, the literal flat key, then each alias.

      Type Parameters

      • T

      Parameters

      • row: T

        The row to read from.

      • column: ColumnDef<T, never>

        The column describing what to read.

      Returns unknown

      The raw value, or undefined if nothing matched.

      The fallbacks exist because servers that flatten joined relations hand back {"customer.businessName": x} rather than a nested object — and some change the prefix when grouping is on.

      resolveValue({ customer: { name: 'Acme' } }, { field: 'customer.name', header: 'C' });
      // 'Acme'