method getBindingById

dataBinding getBindingById(string id);

Argumente

Zurückgegebener Wert

This method returns the binding for the given ID. If not binding is found with the given ID, null is returned. See the dataBinding documentation for more information.
function onSample()
{
    var box = scene.getBoxById("myBox");
    if (box)
    {
        var binding = box.getBindingById("myBindingId");
        if (binding)
        {
            shell.print("Bind type = " + binding.bindType);
        }
    }
}