JavaScript Application Programming Interface (API) for AutoCAD
ContentsIndexHome
PreviousUpNext
Acad.DataItemCollection.addEventListener Function

Autodesk.AutoCAD.js

JavaScript
function Acad.DataItemCollection.addEventListener(eventname,fn);
Parameters 
Description 
eventname 
is the name of the event you want to register. It can be one of the events in Acad.DataItemCollection.eventname. 
fn 
is the callback that is called when the event is triggered. The signature for fn should be fn(eventname,dataItems) {,,}

Use this function to add event listeners for the DataItemCollection class.

Links
Copyright (c) 2016. All rights reserved.
What do you think about this topic? Send feedback!