MCPcopy
hub / github.com/monkeytypegame/monkeytype / ColumnMeta

Interface ColumnMeta

frontend/src/ts/types/tanstack-table.d.ts:8–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6 //This needs to be an interface
7 // oxlint-disable-next-line typescript/consistent-type-definitions
8 interface ColumnMeta<TData extends RowData, TValue> {
9 /**
10 * define minimal breakpoint for the column to be visible.
11 * If not set, the column is always visible
12 */
13 breakpoint?: BreakpointKey;
14
15 /**
16 * define maximal breakpoint for the column to be visible.
17 * If not set, the column is always visible
18 */
19 maxBreakpoint?: BreakpointKey;
20
21 /**
22 * align header and cells, default: `left`
23 */
24 align?: "left" | "right" | "center";
25
26 /**
27 * additional attributes to be set on the table cell.
28 * Can be used to define mouse-overs with `aria-label` and `data-balloon-pos`
29 */
30 cellMeta?:
31 | JSX.HTMLAttributes<HTMLTableCellElement>
32 | ((ctx: {
33 value: TValue;
34 row: TData;
35 }) => JSX.HTMLAttributes<HTMLTableCellElement>);
36
37 /**
38 * additional attributes to be set on the header
39 * Can be used to define mouse-overs with `aria-label` and `data-balloon-pos`
40 */
41 headerMeta?: JSX.HTMLAttributes;
42
43 /** extra classes for the header */
44 headerClass?: string;
45 }
46}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected