aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-10-20 22:10:17 +0700
committerShulhan <ms@kilabit.info>2021-10-20 22:10:17 +0700
commitd1190967d63f7a6fa33c057467eb5b944155d8be (patch)
treed3ba4fb1982a75c0de49fad32c51f4df3a5e51db
parent9f089dfb69cff87ead23fc32ca2b6c9d681de489 (diff)
downloadpakakeh.ts-d1190967d63f7a6fa33c057467eb5b944155d8be.tar.xz
vfs: add class attribute to path and list components
The VFS path component now have class "wui_vfs_path" and the list component have class "wui_vfs_list".
-rw-r--r--vfs/vfs.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/vfs/vfs.ts b/vfs/vfs.ts
index c6a5a8d..ab36eda 100644
--- a/vfs/vfs.ts
+++ b/vfs/vfs.ts
@@ -4,6 +4,9 @@
import { WuiResponseInterface } from "../response"
+const CLASS_VFS_PATH = "wui_vfs_path"
+const CLASS_VFS_LIST = "wui_vfs_list"
+
export interface WuiVfsNodeInterface {
name: string
path: string
@@ -91,6 +94,7 @@ class WuiVfsList {
constructor(public onClick: NodeClickHandler) {
this.el = document.createElement("div")
+ this.el.classList.add(CLASS_VFS_LIST)
this.el.style.borderWidth = "1px"
this.el.style.borderStyle = "solid"
this.el.style.borderColor = "silver"
@@ -138,6 +142,8 @@ class WuiVfsPath {
constructor(onClick: PathClickHandler) {
this.el = document.createElement("div")
+
+ this.el.classList.add(CLASS_VFS_PATH)
this.el.style.borderWidth = "1px"
this.el.style.borderStyle = "solid"
this.el.style.borderColor = "silver"