Section
Expression Extends:
class Section extends aggregate(SectionModel, Helper)
Helper class representing a Section.
Constructor Summary
Public Constructor | ||
public |
constructor(response: Object): Section Constructor for Section |
Member Summary
Public Members | ||
public get |
Get Sections |
|
public |
|
|
public get |
|
|
public set |
|
Private Members | ||
private |
|
|
private |
_type: * |
Method Summary
Public Methods | ||
public |
connectChildren(childArray: Array<any>) Connects children and provides appropriate data elements in the data field. |
|
public |
Synchronize Sections if the content is a section this will load sections belonging to it |
|
public |
Gets the data depending on 'type' and the 'object' fields |
|
public |
Get Status and set it to this.status |
|
public |
transition(action: String): Promise Transition between states using actions |
Public Constructors
Public Members
Private Members
private _type: * source
Public Methods
public connectChildren(childArray: Array<any>) source
Connects children and provides appropriate data elements in the data field. It is important to note that invalid children will only have Section wrappers but no data. This will not throw any errors when there is no data from the server. Check the network capability of the browser or developer tool (Charles etc) to find invalid calls.
Params:
Name | Type | Attribute | Description |
childArray | Array<any> | should contain an array of deserialized Sections in JSON |
public getChildren(): Promise source
Synchronize Sections if the content is a section this will load sections belonging to it