new AbsConcept(optionsopt)
- Source:
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
|
Extends
Members
allowMultiple :Boolean
- Source:
Flag to say if this if this concept only allows more than one active child. (Defaults to false.)
Type:
- Boolean
color :String
- Source:
- Inherited From:
String describing the color of this node, if applicable. This property is observable.
Type:
- String
id :String
- Source:
- Overrides:
Gets or sets the name of the concept item. This property is observable.
Type:
- String
isActive :Boolean
- Source:
- Inherited From:
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:
- Overrides:
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
isSelectable :Boolean
- Source:
- Overrides:
Flag to say if this if this node is selectable. This property is observable.
Type:
- Boolean
isVisible :Boolean
- Source:
- Inherited From:
Gets or sets a value indicating whether this concept is visible. Defaults to true.
Type:
- Boolean
items :Array.<AbsConcept>
- Source:
- Overrides:
Gets the list of absCodes contained in this group. This property is observable.
Type:
- Array.<AbsConcept>
name :String
- Source:
- Inherited From:
Gets or sets the name of the concept item. This property is observable.
Type:
- String
Methods
toFilter() → {Array.<String>}
- Source:
Finds all the active children and recodes them as a 'filter', eg. ['REGION.SA2', 'MEASURE.A02']
Returns:
The active children as a filter.
- Type
- Array.<String>
toggleActive()
- Source:
- Inherited From:
Toggles the Concept#isActive
property.
toggleOpen()
- Source:
- Overrides:
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.