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

    Function formatValue

    • The display string for a cell, independent of any custom renderer.

      Uses ColumnDef.valueFormatter when present. Otherwise null and undefined become '', Date becomes YYYY-MM-DD, booleans become Yes/No, and everything else is stringified.

      Type Parameters

      • T

      Parameters

      • value: unknown

        The raw value, usually from resolveValue.

      • row: T

        The row it came from, passed to the formatter.

      • column: ColumnDef<T, never>

        The column being formatted.

      Returns string

      The display string.