Infrastructure Map Server Forum
Welcome to Autodesk’s Infrastructure Map Server Forums. Share your knowledge, ask questions, and explore popular Infrastructure Map Server topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AIMS Fusion Widget Listeners

1 REPLY 1
SOLVED
Reply
Message 1 of 2
santos.bravo
519 Views, 1 Reply

AIMS Fusion Widget Listeners

Hi,

 

I need detect when the user activate a widget, exist an option to do this?   like

 

 

widget.on("click", function(){

   alert('Hi....');

});

 

 

Thanks,

Tags (1)
1 REPLY 1
Message 2 of 2
jackie.ng
in reply to: santos.bravo

Widgets only expose an event that is raised when it is enabled/disabled.

 

But, any widget that has a toolbar/menu representation also has a uiObj property that represents the UI button/menuitem the widget is attached to.

 

So this should work:

 

widget.uiObj.addEvent("click", function() {
    alert("You clicked me");
});

 - Jackie

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report