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

Method constructor

src/webpage/contextmenu.ts:177–181  ·  view source on GitHub ↗
(text: string, visible?: (obj1: x, obj2: y) => boolean, group?: string)

Source from the content-addressed store, hash-verified

175 group?: string;
176 text: string;
177 constructor(text: string, visible?: (obj1: x, obj2: y) => boolean, group?: string) {
178 this.visible = visible;
179 this.group = group;
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");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected