method getDataBinding

dataBinding getDataBinding(string property);

Argumente

Zurückgegebener Wert

This method returns a specific binding for a box. This method takes as its argument a property name (attribute or style) to serve as the binding target. If one is not already active for that property a new binding is created. The binding is made active via the connect() call. See the dataBinding documentation for more information.
function onSample()
{
    var box = scene.getBoxById("myBox");
    if (box)
    {
        var binding = box.getDataBinding("myBinding");
        if (binding)
        {
            shell.print("Bind type = " + binding.bindType);
        }
    }
}