Class: Concept

Concept()

new Concept()

Represents the bare minimum required to display a concept in the NowViewing tab.

Source:

Members

color :String

String describing the color of this node, if applicable. This property is observable.

Type:
  • String
Source:

id :String

Gets or sets the id of the concept item. By default this is the same as the name. It is allowed to be different eg. for csv files with tersely-named columns.

Type:
  • String
Source:

isActive :Boolean

Gets or sets a value indicating whether this concept is currently active. Only used if the concept's isSelectable is true.

Type:
  • Boolean
Source:

isOpen :Boolean

Gets or sets a value indicating whether this concept item is currently open. When an item is open, its child items (if any) are visible. This property is observable. Only used if the concept's hasChildren can return true.

Type:
  • Boolean
Source:

isSelectable :Boolean

Flag to say if this if this node is selectable. This property is observable. If your subclass can return true, it must define an isActive property and a toggleActive function.

Type:
  • Boolean
Source:

isVisible :Boolean

Gets or sets a value indicating whether this concept is visible. Defaults to true.

Type:
  • Boolean
Source:

items :Array.<AbsConcept>

Gets or sets the items contained in this concept. This property is observable. Only used if the concept's hasChildren can return true.

Type:
Source:

name :String

Gets or sets the name of the concept item. This property is observable.

Type:
  • String
Source:

Methods

toggleActive()

Toggles the Concept#isActive property.

Source:

toggleOpen()

Toggles the Concept#isOpen property. If this item's list of children is open, calling this method will close it. If the list is closed, calling this method will open it.

Source: