Creates all instances and manages configs
Name | Type | Attributes | Description |
---|---|---|---|
layout |
LayoutSystem |
Layout instance |
|
content |
Content |
<optional> |
Content of the layout |
globalStyles |
LayoutStyles |
<optional> |
Global styles for layout and it's children |
Members
List of all children of the layout, controlled by this controller.
As the layout is a container, you can use all container methods on it,
including addChild, but only elements added by layout
config thought constructor of ContentController or using
addContent
method will be managed by this controller.
Get first child of the layout
Methods
Adds content element to the layout and register it in Content controller registry.
Name | Type | Description |
---|---|---|
id |
string |
ID of the element. |
content |
Container |
pixi container instance to be added. |
Adds content to the layout.
Name | Type | Attributes | Description |
---|---|---|---|
content |
Content |
<optional> |
Content of the layout |
parentGlobalStyles |
LayoutStyles |
<optional> |
Global styles for layout and it's children |
Get element from the layout child tree by it's ID
Name | Type | Description |
---|---|---|
id |
string |
Returns:
Type | Description |
---|---|
Container | undefined |
Removes content by its id.
Name | Type | Description |
---|---|---|
id |
string |
Resizes all children.
Name | Type | Description |
---|---|---|
width |
number | |
height |
number |