MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / addButton

Method addButton

src/lib/MenuComponent.ts:21–27  ·  view source on GitHub ↗

* Add a button to the menu

(button: MenuButton)

Source from the content-addressed store, hash-verified

19 * Add a button to the menu
20 */
21 static addButton (button: MenuButton): void {
22 this.engine.configuration(this.tag, {
23 buttons: [...this.buttons(), button]
24 });
25
26 this.onConfigurationUpdate();
27 }
28
29 /**
30 * Add a button after another button

Callers 2

initMethod · 0.80
initMethod · 0.80

Calls 3

buttonsMethod · 0.95
onConfigurationUpdateMethod · 0.95
configurationMethod · 0.65

Tested by

no test coverage detected