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

    Interface ColumnsPanelProps<T, C>

    Props for ColumnsPanel.

    interface ColumnsPanelProps<T, C> {
        columns: ResolvedColumn<T, C>[];
        isHidden: (colId: string) => boolean;
        onClose: () => void;
        onMove: (colId: string, toIndex: number) => void;
        onPin: (colId: string, pinned: Pinned | undefined) => void;
        onReset: () => void;
        onToggle: (colId: string, hidden: boolean) => void;
    }

    Type Parameters

    • T

      The row type.

    • C

      The context type.

    Index
    columns: ResolvedColumn<T, C>[]

    Every column, including hidden ones.

    isHidden: (colId: string) => boolean

    Whether a column is currently hidden.

    onClose: () => void

    Dismiss the panel.

    onMove: (colId: string, toIndex: number) => void

    Move a column to a new index.

    onPin: (colId: string, pinned: Pinned | undefined) => void

    Pin a column, or undefined to unpin.

    onReset: () => void

    Discard the user's layout.

    onToggle: (colId: string, hidden: boolean) => void

    Show or hide one column.