mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Startpoint widget implemented
This commit is contained in:
@@ -19,6 +19,7 @@ export default class WidgetBar
|
||||
this.widgets.forEach(
|
||||
(widget) => {
|
||||
let container = document.createElement('div');
|
||||
container.classList.add('widget-container');
|
||||
|
||||
container.appendChild(widget.getTitle());
|
||||
container.appendChild(widget.getElement());
|
||||
@@ -29,4 +30,22 @@ export default class WidgetBar
|
||||
|
||||
return htmlElement;
|
||||
}
|
||||
|
||||
enableWidgets()
|
||||
{
|
||||
this.widgets.forEach(
|
||||
(widget) => {
|
||||
widget.enable();
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
disableWidgets()
|
||||
{
|
||||
this.widgets.forEach(
|
||||
(widget) => {
|
||||
widget.disable();
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user