Returns
attribute
– DataItemAttribute
if the DataScope
has both a selected attribute and an item (single-item DataScope
), otherwise null
.
DataItemAttribute
.Returns
attribute
– DataItemAttribute
if the DataScope
has both a selected attribute and an item (single-item DataScope
), otherwise null
.
Remarks
A DataItemAttribute
is only returned if the DataScope
has both a selected attribute and an item (a single-item DataScope
). If an attribute is selected in a multi-item DataScope
, then DataScope#attributeName
returns a string, but DataScope#dataItemAttribute
returns null
.