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

Method removeButton

src/lib/MenuComponent.ts:68–74  ·  view source on GitHub ↗

* Remove a button by its string identifier

(string: string)

Source from the content-addressed store, hash-verified

66 * Remove a button by its string identifier
67 */
68 static removeButton (string: string): void {
69 this.engine.configuration(this.tag, {
70 buttons: this.buttons().filter((button: MenuButton) => button.string !== string)
71 });
72
73 this.onConfigurationUpdate();
74 }
75
76 /**
77 * Get all buttons

Callers 1

initMethod · 0.80

Calls 3

buttonsMethod · 0.95
onConfigurationUpdateMethod · 0.95
configurationMethod · 0.65

Tested by

no test coverage detected