add file browser

This commit is contained in:
marlon-erler
2024-07-21 17:55:53 +02:00
parent 1dec6b8512
commit 2a35c94858
13 changed files with 394 additions and 46 deletions
+25
View File
@@ -0,0 +1,25 @@
import * as React from "bloatless-react";
import StorageModel from "../Model/storageModel";
export default class StorageViewModel {
storageModel: StorageModel;
// state
isShowingStorageModal: React.State<boolean> = new React.State(false);
selectedPath: React.State<string> = new React.State("\\");
// view methods
showStorageModal = (): void => {
this.isShowingStorageModal.value = true;
}
hideStorageModal = (): void => {
this.isShowingStorageModal.value = false;
}
// init
constructor(storageModel: StorageModel) {
this.storageModel = storageModel;
}
}