* Find a button by its string identifier
(string: string)
| 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 |