property attributeName

(r/o) string attributeName;

Typ

Zugriff

This property returns the name of the attribute whose value is changed.
<box on:attributeSet="onAttributeSet();"/>

function onAttributeSet()
{
    var eventObj = shell.currentEvent;
    if (eventObj)
    {
        var attributeName = eventObj.attributeName;
        if (attributeName == "foo")
        {
            shell.print("the foo attribute on this box just changes its value");
        }
    }
}