Variable columnModalAtomConst

columnModalAtom: WritableAtom<null | {
    columnKey?: string;
    index?: number;
    type: "name" | "type" | "config" | "new" | "setColumnWidth";
}, SetStateActionWithReset<null | {
    columnKey?: string;
    index?: number;
    type: "name" | "type" | "config" | "new" | "setColumnWidth";
}>, void> = ...

Opens a table column modal. Set to null to close. Modals: new column, name change, type change, column settings.

Example

Basic usage:

const openColumnModal = useSetAtom(columnModalAtom, projectScope);
openColumnModal({ type: "...", column });

Example

Close:

import { RESET } from "jotai/utils";
openColumnModal(RESET)

Generated using TypeDoc