Are you sure about where each code sample is?
Are you saying your class exposes click events?
I thought I had posted a reply, maybe I forgot to submit.
You can declare a public variable in the class or a private variable with get/let properties.
In your main code you will need to assign the value to the property before executing the function that uses it other wise the value will be zero
Bookmarks