Concept

Concept

new Concept()

Source:

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

Members

color :String

Source:

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

Type:
  • String

id :String

Source:

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

isActive :Boolean

Source:

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

Type:
  • Boolean

isOpen :Boolean

Source:

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

isSelectable :Boolean

Source:

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

isVisible :Boolean

Source:

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

Type:
  • Boolean

items :Array.<AbsConcept>

Source:

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

Type:

name :String

Source:

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

Type:
  • String

Methods

toggleActive()

Source:

Toggles the Concept#isActive property.

toggleOpen()

Source:

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.