2012年3月26日月曜日

Retrieving an atlas control object from an html element

Ok I know you can get the HTML element an atlas control is tied to using the associatedElement property of a control object. I was wondering if there is a way in the framework of retrieving a control if you've got the HTML element?

Hi,

yes, you can use the control property. For example, if myElement is a reference to a DOM element that is associated to an Atlas control, you can write

myElement.control;
to get a reference to the Atlas control.

Brilliant, thanks for the help.

0 件のコメント:

コメントを投稿