SidebarDirectory

SidebarDirectory

A shared pattern for the sidebar directory which Actors, Items, and Scenes all use

Constructor

new SidebarDirectory()

Source:

Extends

Members

(static) collection :Collection

Source:

The Entity collection which this Sidebar Directory contains

Type:

(static) defaultOptions

Source:

(static) entity :string

Source:

The named entity which this Sidebar Directory contains

Type:
  • string

_original :SidebarTab

Source:
Overrides:

Denote whether or not this is the original version of the sidebar tab, or a pop-out variant

Type:

entities :Array

Source:

References to the set of Entities which are displayed in the Sidebar

Type:

folders :Array

Source:

Reference the set of Folders which exist in this Sidebar

Type:

searchString :String

Source:

The search string currently being filtered for

Type:

tabName :string

Source:
Overrides:

The base name of this sidebar tab

Type:
  • string

Methods

(static) setupFolders(folders, entities, sortMode) → {Object}

Source:

Given an entity type and a list of entities, set up the folder tree for that entity

Parameters:
Name Type Default Description
folders Array

The Array of Folder objects to organize

entities Array

The Array of Entity objects to organize

sortMode String n

How should entities or Folders be sorted? (a)lphabetic or (n)umeric

Returns:

A tree structure containing the folders and entities

Type
Object

_onDragOver()

Source:

Allow data transfer events to be dragged over this as a drop zone

(async) _render()

Source:
Inherited From:

(async) _renderInner()

Source:
Inherited From:

activate()

Source:
Overrides:

Activate this SidebarTab, switching focus to it

activateListeners()

Source:

Activate event listeners triggered within the Actor Directory HTML

(async) close()

Source:
Inherited From:

collapseAll()

Source:

Collapse all subfolders in this directory

createPopout() → {SidebarTab}

Source:
Overrides:

Create a second instance of this SidebarTab class which represents a singleton popped-out container

Returns:

The popped out sidebar tab instance

Type
SidebarTab

getData()

Source:

render()

Source:

renderPopout()

Source:
Overrides:

Render the SidebarTab as a pop-out container