MCPcopy Create free account
hub / github.com/chhoumann/quickadd / createButton

Method createButton

src/gui/MathModal.ts:112–121  ·  view source on GitHub ↗
(
		container: HTMLElement,
		text: string,
		callback: (evt: MouseEvent) => unknown
	)

Source from the content-addressed store, hash-verified

110 }
111
112 private createButton(
113 container: HTMLElement,
114 text: string,
115 callback: (evt: MouseEvent) => unknown
116 ) {
117 const btn = new ButtonComponent(container);
118 btn.setButtonText(text).onClick(callback);
119
120 return btn;
121 }
122
123 private createButtonBar(mainContentContainer: HTMLDivElement) {
124 const buttonBarContainer: HTMLDivElement =

Callers 1

createButtonBarMethod · 0.95

Calls 2

setButtonTextMethod · 0.95
onClickMethod · 0.45

Tested by

no test coverage detected