Skip to content
Chris Hafey edited this page May 6, 2014 · 2 revisions

The getElementData api call is used to access element specific data for an enabled element. If no data exists for this dataType, an empty object is created.

function _getElementData_(element, dataType);

Parameters:

  • element - the DOM element that has been enabled (DOM node)
  • dataType - a unique string identifying this data type. We recommend using a GUID generator to avoid conflicts with other tools that might happen to use the same name (String)

Returns: a Javascript object for this dataType