constructor new Container
new Container(components[, options])
-
components
(Array
) – An array ofComponent
s that should initally be placed into the container. This is a required argument, however it can be an empty array. Also note that you can add or removeComponent
s at any time viaContainer#addComponent
andContainer#removeComponent
. -
options
(Object
) – The optional 'options' object's properties are copied thisContainer
in the constructor. It allows all the same default properties asComponent
.
Creates a new Container
instance, adding the Component
s found
in components
initially.