utils.tsx 404 B

1234567891011
  1. // Auto layout width.
  2. export const COL_WIDTH_UNDEFINED = -1;
  3. // Set to 90 as the edit/trash icons need this much space.
  4. export const COL_WIDTH_MINIMUM = 90;
  5. // Store state at the start of "resize" action
  6. export type ColResizeMetadata = {
  7. columnIndex: number; // Column being resized
  8. columnWidth: number; // Column width at start of resizing
  9. cursorX: number; // X-coordinate of cursor on window
  10. };