import { BaseContext, GridCell } from '../../types'; /** * Options for managing AdapTable Notes */ export interface NoteOptions { /** * Whether a cell can contain Notes */ isCellNotable?: (context: NotableCellContext) => boolean; /** * Date Format string for Notes timestamp * * @defaultValue 'dd-MM-yyyy HH:mm:ss' */ dateFormat?: string | (() => string); /** * Show the Close Button in the Notes Popup * * @defaultValue true */ showPopupCloseButton?: boolean; } /** * Context used when determining if a Note can be added to a Cell */ export interface NotableCellContext extends BaseContext { /** * Grid Cell in AdapTable which has been clicked */ gridCell: GridCell; }