property path

(r/w) string path;

Typ

Zugriff

This property sets and gets the selector used to select source of data relative to data source. Usually a property of the source object. Not required for collections in general.
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();
        }
    }
}