apex-grid
    Preparing search index...

    Type Alias DataType

    DataType:
        | "number"
        | "string"
        | "boolean"
        | "select"
        | "rating"
        | "date"
        | "image"
        | "currency"
        | "avatar"
        | "badge"
        | "progress"
        | "sparkline"
        | "status"

    The data type — or, for the declarative built-ins ('select', 'rating', 'date', 'image'), the presentation type — for the current column.

    • 'string' / 'number' are the primitive data types. They drive the default filter operands, the default editor, and the default sort comparison.
    • 'boolean' stores true / false. In display mode the grid renders a check-mark icon for true and a dimmed mark for false. In edit mode the default editor is a native checkbox.
    • 'select' is a presentation type for columns that store one of a fixed set of values. Supply the available options via BaseColumnConfiguration.options. The cell renders the matching option's label in display mode and a native <select> in edit mode. For sorting / filtering, select columns behave as their underlying value type (typically string).
    • 'rating' renders a numeric value (0..max) as filled stars in display mode and as an interactive star picker in edit mode. Configure the star count via BaseColumnConfiguration.max (defaults to 5). For sorting / filtering, rating columns behave as numbers.
    • 'date' renders values as locale-aware formatted dates in display mode and a native <input type="date"> in edit mode. Accepts Date instances, ISO strings, or millisecond timestamps as input and commits back in the same shape. Configure the display format via BaseColumnConfiguration.format ('short' | 'medium' | 'long' | 'full', default 'medium').
    • 'image' renders the value as an <img> source. Use BaseColumnConfiguration.shape to pick between 'square' (default) and 'circle'. The cell's default text editor is used for editing the URL string when editable: true is set.

    The remaining types are premium presentation renderers over primitive values; for sorting / filtering they behave as their underlying value type: