feat(mobile): implement dismiss region of sidebar

This commit is contained in:
Elian Doran
2024-12-28 13:56:20 +02:00
parent 61ccee27f2
commit b00ca234f5
4 changed files with 24 additions and 13 deletions

View File

@@ -8,6 +8,14 @@ export default class SidebarContainer extends FlexContainer {
this.screenName = screenName;
}
doRender() {
super.doRender();
this.$widget.on("click", () => {
this.triggerEvent('activeScreenChanged', "detail");
});
}
activeScreenChangedEvent({activeScreen}) {
if (activeScreen === this.screenName) {
this.$widget.addClass('show');