Xivgear Types Documentation
    Preparing search index...

    Interface CustomColumnSpec<RowDataType, CellDataType, ColumnDataType>

    interface CustomColumnSpec<RowDataType, CellDataType, ColumnDataType = any> {
        allowCellSelection?: boolean;
        allowHeaderSelection?: boolean;
        colStyler?: ColStyler<RowDataType, CellDataType>;
        condition?: () => boolean;
        dataValue?: ColumnDataType;
        displayName: string;
        extraClasses?: string[];
        finisher?: (
            value: CellDataType,
            rowValue: RowDataType,
            cell: CustomCell<RowDataType, CellDataType>,
        ) => void;
        fixedData?: boolean;
        fixedWidth?: number;
        getter: (item: RowDataType) => CellDataType;
        headerStyler?: (
            value: ColumnDataType,
            colHeader: CustomTableHeaderCell<
                RowDataType,
                CellDataType,
                ColumnDataType,
            >,
            headerRow: CustomTableHeaderRow<RowDataType>,
        ) => void;
        initialWidth?: number;
        renderer?: CellRenderer<RowDataType, CellDataType>;
        rowCondition?: (item: RowDataType) => boolean;
        shortName: string;
        titleSetter?: (
            value: CellDataType,
            rowValue: RowDataType,
            cell: CustomCell<RowDataType, CellDataType>,
        ) => string | null;
    }

    Type Parameters

    • RowDataType
    • CellDataType
    • ColumnDataType = any
    Index

    Properties

    allowCellSelection?: boolean
    allowHeaderSelection?: boolean
    condition?: () => boolean
    dataValue?: ColumnDataType
    displayName: string
    extraClasses?: string[]
    finisher?: (
        value: CellDataType,
        rowValue: RowDataType,
        cell: CustomCell<RowDataType, CellDataType>,
    ) => void
    fixedData?: boolean

    Only allow a single refresh - after that, the item is considered "fixed" and subsequent refreshes will be ignored

    fixedWidth?: number
    getter: (item: RowDataType) => CellDataType
    headerStyler?: (
        value: ColumnDataType,
        colHeader: CustomTableHeaderCell<RowDataType, CellDataType, ColumnDataType>,
        headerRow: CustomTableHeaderRow<RowDataType>,
    ) => void
    initialWidth?: number
    rowCondition?: (item: RowDataType) => boolean
    shortName: string
    titleSetter?: (
        value: CellDataType,
        rowValue: RowDataType,
        cell: CustomCell<RowDataType, CellDataType>,
    ) => string | null