* Add a button to the menu
(button: MenuButton)
| 19 | * Add a button to the menu |
| 20 | */ |
| 21 | static addButton (button: MenuButton): void { |
| 22 | this.engine.configuration(this.tag, { |
| 23 | buttons: [...this.buttons(), button] |
| 24 | }); |
| 25 | |
| 26 | this.onConfigurationUpdate(); |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * Add a button after another button |
no test coverage detected