From d1190967d63f7a6fa33c057467eb5b944155d8be Mon Sep 17 00:00:00 2001 From: Shulhan Date: Wed, 20 Oct 2021 22:10:17 +0700 Subject: 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". --- vfs/vfs.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.3