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

Method button

src/lib/MenuComponent.ts:87–89  ·  view source on GitHub ↗

* Find a button by its string identifier

(string: string)

Source from the content-addressed store, hash-verified

85 * Find a button by its string identifier
86 */
87 static button (string: string): MenuButton | undefined {
88 return this.buttons().find((button: MenuButton) => button.string === string);
89 }
90
91 /**
92 * Called when configuration is updated - re-renders all instances

Callers

nothing calls this directly

Calls 1

buttonsMethod · 0.95

Tested by

no test coverage detected