property targetTransformer

(w/o) string targetTransformer;

Typ

Zugriff

This method sets the target transformer callback method for transforming data from target to source.
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.targetTransformer = "toolkit:not";
            binding.connect();
        }
    }
}