SidebarDirectory

SidebarDirectory

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

Constructor

new SidebarDirectory()

Source:

Extends

Members

(static) defaultOptions

Source:

Assign the default options which are supported by this Application

_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:
Overrides:

When re-rendering the sidebar tab, also render its pop-out version if it exists

activate()

Source:
Overrides:

Activate this SidebarTab, switching focus to it

activateListeners()

Source:

Activate event listeners triggered within the Actor Directory HTML

(async) close() → {boolean}

Source:
Overrides:

Only close the pop-out version of the sidebar tab

Returns:
Type
boolean

collapseAll()

Source:

Collapse all subfolders in this directory

getData()

Source:

render()

Source:

renderPopout()

Source:
Overrides:

Render the SidebarTab as a pop-out container