From a1d88967d78496883b72df595c6533fb343f4328 Mon Sep 17 00:00:00 2001 From: marlon-erler Date: Tue, 23 Jul 2024 23:45:08 +0200 Subject: [PATCH] prepare taskViewModel --- src/taskViewModel.ts | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/taskViewModel.ts diff --git a/src/taskViewModel.ts b/src/taskViewModel.ts new file mode 100644 index 00000000..3781887a --- /dev/null +++ b/src/taskViewModel.ts @@ -0,0 +1,27 @@ +import * as React from "bloatless-react"; + +import BoardViewModel from "./ViewModel/Pages/boardViewModel"; + +export default class TaskViewModel { + boardViewModel: BoardViewModel; + + // state + name: React.State = new React.State(""); + + category: React.State = new React.State(""); + status: React.State = new React.State(""); + + description: React.State = new React.State(""); + + priority: React.State = new React.State(""); + date: React.State = new React.State(""); + time: React.State = new React.State(""); + + // storage + save = (): void => {} + + // init + constructor(boardViewModel: BoardViewModel) { + this.boardViewModel = boardViewModel; + } +} \ No newline at end of file