Class VirtualBase
extends EventEmitter
Constructor
new VirtualBase(name)
Parameters
- name
- Type:
string
- Type:
Properties
id
- Type:
string
name
- Type:
string
alias
- Type:
string | undefined
parent
- Type:
VirtualFolder | undefined
References
isProtected
- Type:
boolean | undefined
iconUrl
- Type:
string | undefined
linkedFile
- Type:
VirtualFile | undefined
linkedFolder
- Type:
VirtualFolder | undefined
References
editedByUser
- Type:
boolean | undefined
isRoot
- Type:
boolean | undefined
root
- Type:
VirtualRoot | undefined
path
- Type:
string
displayPath
Returns path without using this item's alias
- Type:
string
absolutePath
Returns path without using any aliases
- Type:
string
canBeEdited
Returns whether this can be edited in its current state
- Type:
boolean
Methods
setName(name)
- Parameters
- name
- Type:
string
- Type:
- name
- Returns:
this
setAlias(alias)
- Parameters
- alias
- Type:
string
- Type:
- alias
- Returns:
this
setParent(parent)
- Parameters
- parent
- Type:
VirtualFolder
- Type:
- parent
- Returns:
this
setProtected(value)
- Parameters
- value
- Type:
boolean
- Type:
- value
- Returns:
this
setIconUrl(iconUrl)
- Parameters
- iconUrl
- Type:
string | null
- Type:
- iconUrl
- Returns:
this
getIconUrl()
- Returns
- Type:
string
- Type:
getType()
- Returns:
"None"
delete()
confirmChanges(root)
- Parameters
- root
- Type:
VirtualRoot | undefined
- Type:
- root
open(...args)
- Parameters
- args
- Type:
unknown[]
- Type:
- args
- Returns:
null
getRoot()
- Returns
- Type:
VirtualRoot
- Type:
isFile()
- Returns:
false
- Type:
boolean
- Type:
isFolder()
- Returns:
false
- Type:
boolean
- Type:
toJSON()
- Returns
- Type:
VirtualBaseJson | null
- Type:
ts
interface VirtualBaseJson {
nam: string;
ico?: string;
}
toString()
- Returns
- Type:
string | null
- Type: