property elementSource

(r/w) box elementSource;

Typ

Zugriff

This property sets and gets the element source box object. The binding type is of elementSource.
function onSample()
{
    var sourceBox = scene.getBoxById("mySourceBox");
    var box       = scene.getBoxById("myBox");
    if (box && sourceBox)
    {
        var binding = box.getDataBinding("myBinding");
        if (binding)
        {
            binding.elementSource = sourceBox;
            binding.path = "value";
            binding.bindMethod = "twoWay";
            binding.connect();
        }
    }
}