This example shows one composite mojit with 4 children below: devil, socks, jeans, and
jay. These are identified because they are predefined in the application.json file:
[
{
"settings": [ "master" ],
"specs": {
"frame": {
"type": "HTMLFrameMojit",
"config": {
"deploy": true,
"child": {
"type": "Parent",
"config": {
"children": {
"devil": {
"type": "RedChild"
},
"socks": {
"type": "RedChild"
},
"jeans": {
"type": "BlueChild"
},
"jay": {
"type": "BlueChild"
}
}
}
}
}
}
}
}
]
If a target child is given in the form below, only it will receive the broadcast. The target child corresponds to the slot defined as the identifier within the children property of the composite configuration.