I am trying to figure out a way to add a click event to a button after the button is created.
For example if I were to create a button without a click event:
isc.IButton.create({
title: “Hello”,
icon: “icons/16/world.png”,
})
I would like to know how I would at some later point add a click listener. The examples all show button’s being created in the following manner which will not work for my scenario.
isc.IButton.create({
title: “Hello”,
icon: “icons/16/world.png”,
iconOrientation: “right”,
click: “isc.say(‘Hello world!’)”
})
I did not see an addClick or setClick method on the Canvas class.