mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(client/ts): port mobile_widgets
This commit is contained in:
parent
2baf75d0c1
commit
a2f1d71754
@ -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 }) {}
|
|
||||||
}
|
|
15
src/public/app/widgets/mobile_widgets/screen_container.ts
Normal file
15
src/public/app/widgets/mobile_widgets/screen_container.ts
Normal 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">) {}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user