Class: AbsConcept

AbsConcept(optionsopt)

new AbsConcept(optionsopt)

Represents an ABS concept associated with a AbsDataset. An AbsConcept contains an array one of more AbsCodes.

Parameters:
Name Type Attributes Description
options Object <optional>

Object with the following properties:

Properties
Name Type Attributes Description
name String <optional>

The concept's human-readable name, eg. "Region Type".

id Array.<String> <optional>

The concept's id (the name given to it by the ABS), eg. "REGIONTYPE".

codes Array.<Object> <optional>

ABS code objects describing a tree of codes under this concept, eg. [{code: '01_02', description: 'Negative/Nil Income', parentCode: 'TOT', parentDescription: 'Total'}, ...].

filter Array.<String> <optional>

The initial concepts and codes to activate.

allowMultiple Boolean <optional>

Does this concept only allow multiple active children (eg. all except Region type)?

activeItemsChangedCallback function <optional>

A function called when activeItems changes.

Source:

Extends

Members

allowMultiple :Boolean

Flag to say if this if this concept only allows more than one active child. (Defaults to false.)

Type:
  • Boolean
Source:

color :String

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

Type:
  • String
Inherited From:
Source:

id :String

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

Type:
  • String
Overrides:
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
Inherited From:
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.

Type:
  • Boolean
Overrides:
Source:

isSelectable :Boolean

Flag to say if this if this node is selectable. This property is observable.

Type:
  • Boolean
Overrides:
Source:

isVisible :Boolean

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

Type:
  • Boolean
Inherited From:
Source:

items :Array.<AbsConcept>

Gets the list of absCodes contained in this group. This property is observable.

Type:
Overrides:
Source:

name :String

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

Type:
  • String
Inherited From:
Source:

Methods

toFilter() → {Array.<String>}

Finds all the active children and recodes them as a 'filter', eg. ['REGION.SA2', 'MEASURE.A02']

Source:
Returns:

The active children as a filter.

Type
Array.<String>

toggleActive()

Toggles the Concept#isActive property.

Inherited From:
Source:

toggleOpen()

Toggles the AbsConcept#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.

Overrides:
Source: