Item Index

Methods

Methods

addChild

This method allow you to add more childs into the queue of children
manually. By default, the config.children structure will be processed
when calling ac.composite.done, but you can add more childs programatically
before or after calling ac.composite.done if you need to.
This is useful when you want to have more control over the children collection.

ac.composite.addChild('slot-1', {
type: "foo",
action: "index"
})

Parameters:

childNameString

The mojit instance name that will be used
in a template in a form of {{{}}}.

childObject

The configuration object for the child.

Returns:

Object:
The normalized configuration object for the
child, in case the child has to be proxied.

done

Automatically dispatches all the children of this mojit and collects
their executed values into the view template, keyed by the child's
name within the mojit's configuration. For example, given the mojit
spec:

This will execute the child intances of the "FooMojit" and
"BarMojit", returning their rendered values into the parent's view
template, thus rendering the full parent view including the children.
The API of this method is equivalent to ac.done().