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

Method onConfigurationUpdate

src/lib/MenuComponent.ts:94–102  ·  view source on GitHub ↗

* Called when configuration is updated - re-renders all instances

()

Source from the content-addressed store, hash-verified

92 * Called when configuration is updated - re-renders all instances
93 */
94 static async onConfigurationUpdate (): Promise<void> {
95 const elements = document.querySelectorAll(this.tag);
96
97 for (const element of elements) {
98 if (element instanceof Component) {
99 element.innerHTML = element.render() as string;
100 }
101 }
102 }
103
104 /**
105 * Render the menu buttons

Callers 4

addButtonMethod · 0.95
addButtonAfterMethod · 0.95
addButtonBeforeMethod · 0.95
removeButtonMethod · 0.95

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected