MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / onclick

Function onclick

src/components/contextmenu/index.js:45–54  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

43 className: "context-menu scroll",
44 innerHTML: content || "",
45 onclick(e) {
46 if (options.onclick) options.onclick.call(this, e);
47 if (options.onselect) {
48 const $target = e.target;
49 const { action } = $target.dataset;
50 if (!action) return;
51 hide();
52 options.onselect.call(this, action);
53 }
54 },
55 style: {
56 top: options.top || "auto",
57 left: options.left || "auto",

Callers

nothing calls this directly

Calls 2

callMethod · 0.80
hideFunction · 0.50

Tested by

no test coverage detected