Dependicus API Reference
    Preparing search index...

    Interface CustomColumn

    Definition of a custom column that maps FactStore data to a table column.

    Several properties correspond directly to Tabulator column definition options. See the Tabulator column docs for details.

    interface CustomColumn {
        filter?: "input" | "list";
        filterValues?: Record<string, string>;
        getFilterValue?: (
            name: string,
            version: DependencyVersion,
            store: FactStore,
        ) => string;
        getTooltip?: (
            name: string,
            version: DependencyVersion,
            store: FactStore,
        ) => string;
        getValue: (
            name: string,
            version: DependencyVersion,
            store: FactStore,
        ) => string;
        header: string;
        key: string;
        width?: number;
    }
    Index

    Properties

    filter?: "input" | "list"

    Filter type for the column header. Maps to Tabulator's headerFilter.

    filterValues?: Record<string, string>

    Predefined filter values for 'list' filter (id to display name). Maps to Tabulator's headerFilterParams.values.

    getFilterValue?: (
        name: string,
        version: DependencyVersion,
        store: FactStore,
    ) => string

    Extract a separate filter value. When set, header filter matches against this value instead of the display value. Implemented via a custom headerFilterFunc.

    getTooltip?: (
        name: string,
        version: DependencyVersion,
        store: FactStore,
    ) => string

    Extract a tooltip string. Maps to Tabulator's tooltip.

    getValue: (name: string, version: DependencyVersion, store: FactStore) => string

    Extract the display value from the store.

    header: string

    Column header display text. Maps to Tabulator's title.

    key: string

    Unique key used as the column field in row data.

    width?: number

    Column width in pixels. Maps to Tabulator's width.