MCPcopy
hub / github.com/glideapps/glide-data-grid / makeCol

Function makeCol

packages/core/test/data-grid-lib.test.ts:14–34  ·  view source on GitHub ↗
(title: string, sourceIndex: number, sticky: boolean, width: number)

Source from the content-addressed store, hash-verified

12import type { ImageWindowLoader } from "../src/internal/data-grid/image-window-loader-interface.js";
13
14function makeCol(title: string, sourceIndex: number, sticky: boolean, width: number): MappedGridColumn {
15 return {
16 title,
17 sourceIndex,
18 sticky,
19 width,
20 group: undefined,
21 grow: undefined,
22 hasMenu: undefined,
23 icon: undefined,
24 id: undefined,
25 menuIcon: undefined,
26 overlayIcon: undefined,
27 style: undefined,
28 themeOverride: undefined,
29 trailingRowOptions: undefined,
30 growOffset: undefined,
31 rowMarker: undefined,
32 rowMarkerChecked: undefined,
33 };
34}
35
36describe("remapForDnDState", () => {
37 const sampleColumns: MappedGridColumn[] = [

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…