ContainerClass
Creates a container with specified layout and children. The added children gets a property "parent", which is the container itself.
Example
var container = new nokia.mh5.ui.Container({
layout: {
type: nokia.mh5.ui.RowLayout
},
children: ["input", "submit"],
input: {
control: nokia.mh5.ui.TextInput
},
submit: {
control: nokia.mh5.ui.Button
}
});
Inheritance hierarchy
nokia.mh5.Classnokia.mh5.ui.Control
nokia.mh5.ui.Container
nokia.mh5.ui.Carousel
nokia.mh5.ui.Dialog
nokia.mh5.ui.List
nokia.mh5.ui.Page
nokia.mh5.components.Map
nokia.mh5.components.PlaceDetails
nokia.mh5.components.PlaceSummary
nokia.mh5.components.Route
nokia.mh5.components.Search
Constructor Detail
Creates a container with specified properties.
new nokia.mh5.ui.Container(props, parentContainer);
Constructor Parameters
| Type | Name | Description |
|---|---|---|
| Object | props | See below: |
| nokia.mh5.ui.Container | parentContainer | the mh5 component into which this element is embedded |
| Object | layout | layout properties of the container |
| nokia.mh5.ui.AutoLayout | type | layout of type the container |
| String | align | if align is set to "stretch", the children will share the whole height of the container |
| Array | children | array with names of the children, which are also present in the properties |
Methods Hide Inherited
![]() ![]() |
getRootOwnerByClass | Retrieves the instance that owns the root node of the specified Class. Used to retrieve creator of the component inside bound events. |
![]() |
build | Calls the build functions of all children (if available). In here children can already access the tree of UI controls, which isn't possible in the constructor. |
![]() |
add | Adds a control with the specified name to the container and adds the "parent" property set to the container to it. |
![]() ![]() |
getContentRoot | Returns the real DOM node of the control without scroll wrapper (if present). |
![]() |
insertBefore | Inserts a control with a specified name to the container before the control with the specified name and adds the "parent" property set to the container to it. |
![]() |
prepareBindings | Calls prepareBindings on children controls (if available) and itself. |
![]() |
prepareDidChangeNotifications | Calls prepareDidChangeNotifications on children controls (if available) and itself. |
![]() |
remove | Removes a specified a control from the container, if it can be found. |
Properties Hide Inherited
![]() |
Array | children | Array with strings, which call the children of the container |
![]() ![]() |
String | cssClass | The CSS class. |
![]() |
Boolean | dontBind | makes sure, that the bindings in the container are initialized after the build function of all children is called. |
Events
nokia.mh5.ui.Container has no events.
Callbacks
nokia.mh5.ui.Container has no callbacks.
Classes
nokia.mh5.ui.Container has no classes.
Constants
nokia.mh5.ui.Container has no constants.
Interfaces
nokia.mh5.ui.Container has no interfaces.

