OpenDashDataContainer Class
Instances of OpenDashDataContainer will be returned by the $data service.
Usage
Use the $data service to get an instance of OpenDashDataContainer. In the following example container
might be an OpenDashDataContainer. The containers
Array will be an Array of OpenDashDataContainers.
Example:
class controller {
static get $inject() { return ['opendash/services/data']; }
constructor($data) {
let container = $data.get('container.id');
let containers = $data.query().container().run();
}
}
Properties
- id: Unique ID of the container.
- name: Name of the container.
- icon: Path to an image, representing the container.
- parent: Instance of
OpenDashDataItem
,OpenDashDataContainer
ornull
. - children: Direct children of the container. Array with instances of
OpenDashDataItem
orOpenDashDataContainer
, might be empty. - items: All direct and indirect children of the container. Array with instances of
OpenDashDataItem
orOpenDashDataContainer
, might be empty. - meta: Object of meta information about the container, depending on type.