property updateMethod

(r/w) string updateMethod;

Typ

Zugriff

This property sets and gets the method to determine when data is transferred between the target and the source. Valid values are:
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.updateMethod = "onDataChanged";
            binding.connect();
        }
    }
}