diff options
| author | Shulhan <ms@kilabit.info> | 2021-10-20 22:10:17 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2021-10-20 22:10:17 +0700 |
| commit | d1190967d63f7a6fa33c057467eb5b944155d8be (patch) | |
| tree | d3ba4fb1982a75c0de49fad32c51f4df3a5e51db | |
| parent | 9f089dfb69cff87ead23fc32ca2b6c9d681de489 (diff) | |
| download | pakakeh.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.ts | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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" |
