* Called when configuration is updated - re-renders all instances
()
| 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 |
no test coverage detected