new SolarNodeImageGroup(componentId, componentName)
Constructor.
Parameters:
Name | Type | Description |
---|---|---|
componentId |
string | the full group component ID |
componentName |
string | the last component from the component ID |
Members
-
<readonly> componentId :string
-
The full group component ID.
Type:
- string
-
<readonly> componentName :string
-
The last component from the component ID.
Type:
- string
-
<readonly> groups :Array.<module:domain~SolarNodeImageGroup>
-
The child groups of this group.
Type:
-
<readonly> items :Array.<module:domain~SolarNodeImageInfo>
-
The items of this group.
Type:
- Array.<module:domain~SolarNodeImageInfo>
Methods
-
addGroup(group)
-
Add another group as a child of this group.
Parameters:
Name Type Description group
module:domain~SolarNodeImageGroup the group to add
Returns:
this object
-
addItem(image)
-
Add an image to this group.
Parameters:
Name Type Description image
module:domain~SolarNodeImageInfo the image to add
Returns:
this object
-
toJsonEncoding()
-
Get this object as a standard JSON encoded string value.
Returns:
the JSON encoded string
- Type
- string