MCPcopy Create free account
hub / github.com/editablejs/editable / setOpen

Function setOpen

packages/plugins/context-menu/src/store.ts:83–86  ·  view source on GitHub ↗
(editor: Editable, open: boolean)

Source from the content-addressed store, hash-verified

81
82export const ContextMenu = {
83 setOpen(editor: Editable, open: boolean) {
84 const store = getStore(editor)
85 store.setState(() => ({ open }))
86 },
87
88 setItems(editor: Editable, items: ContextMenuItem[]) {
89 const store = getStore(editor)

Callers 2

handleContextMenuFunction · 0.50
ContextMenuPortalFunction · 0.50

Calls 1

getStoreFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…