MCPcopy Create free account
hub / github.com/MathMan05/Fermi / makeContextHTML

Method makeContextHTML

src/webpage/contextmenu.ts:182–188  ·  view source on GitHub ↗
(obj1: x, obj2: y, menu: HTMLDivElement)

Source from the content-addressed store, hash-verified

180 this.text = text;
181 }
182 makeContextHTML(obj1: x, obj2: y, menu: HTMLDivElement): void {
183 if (!this.visible || this.visible(obj1, obj2)) {
184 const span = document.createElement("span");
185 span.textContent = this.text;
186 menu.append(span);
187 }
188 }
189}
190class ContextMenuSlider<x, y> implements menuPart<x, y> {
191 private visible?: (obj1: x, obj2: y) => boolean;

Callers

nothing calls this directly

Calls 1

visibleMethod · 0.80

Tested by

no test coverage detected