easy-spreadsheet-write
    Preparing search index...

    Interface ESWColumnObjectFormat<ContentType>

    interface ESWColumnObjectFormat<
        ContentType extends ESWContentType = ESWDefaultContentType,
    > {
        format?: string;
        label: string;
        value: string | ((row: ContentType) => any);
    }

    Type Parameters

    Index

    Properties

    Properties

    format?: string

    Column formatting expression

    Refs:

    Examples:

    // Number formats
    "$0.00" // Basic
    "#,##0.00" // Pound
    "0%" // Percentage
    '#.# "ft"' // Number and text

    // Date formats
    "d-mmm-yy" // 12-Mar-22
    "ddd" // (eg. Sat)
    "dddd" // (eg. Saturday)
    "h:mm AM/PM" // 1:10 PM
    label: string

    Column label.

    value: string | ((row: ContentType) => any)

    Cell value

    A path to the value in the row object, or a function that takes the row and returns the value.