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
|
- 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:
- Array.<AbsConcept>
- 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: