MCPcopy
hub / github.com/react-grid-layout/react-grid-layout / createItem

Function createItem

test/spec/constraints-test.ts:28–39  ·  view source on GitHub ↗
(overrides: Partial<LayoutItem> = {})

Source from the content-addressed store, hash-verified

26
27// Helper to create a basic layout item
28function createItem(overrides: Partial<LayoutItem> = {}): LayoutItem {
29 return {
30 i: "test",
31 x: 0,
32 y: 0,
33 w: 2,
34 h: 2,
35 static: false,
36 moved: false,
37 ...overrides
38 };
39}
40
41// Helper to create a constraint context
42function createContext(

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…