chore(client/ts): port mobile_widgets

This commit is contained in:
Elian Doran 2025-02-01 14:45:12 +02:00
parent 2baf75d0c1
commit a2f1d71754
No known key found for this signature in database
3 changed files with 15 additions and 11 deletions

View File

@ -1,11 +0,0 @@
import FlexContainer from "../containers/flex_container.js";
export default class ScreenContainer extends FlexContainer {
constructor(screenName, direction) {
super(direction);
this.screenName = screenName;
}
activeScreenChangedEvent({ activeScreen }) {}
}

View File

@ -0,0 +1,15 @@
import type { EventData } from "../../components/app_context.js";
import type BasicWidget from "../basic_widget.js";
import FlexContainer, { type FlexDirection } from "../containers/flex_container.js";
export default class ScreenContainer extends FlexContainer<BasicWidget> {
private screenName: string;
constructor(screenName: string, direction: FlexDirection) {
super(direction);
this.screenName = screenName;
}
activeScreenChangedEvent({ activeScreen }: EventData<"activeScreenChanged">) {}
}