# \[APP\]\[Pro\] Enhanced Device Widgets. Live 1.1.29, Test 1.1.30

**URL:** <https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835>\
**Category:** Apps\
**Created:** [October 10, 2024, 5:25pm UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835 "2024-10-10T17:25:43Z")\
**Posts on this page:** 1\
**Showing post:** 376

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [June 20, 2025, 7:24am UTC](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835/376 "2025-06-20T07:24:55Z")

</div>

New test version in the store.

I have added a new event option to trigger user object clicks. So in the HTML that you pass in, add an onClick attribute to the objects as follows:

`<img id="imag1" src="ok.png" " onClick="onObjectClick('OK');"> <img id="imag2" src="cancel.png" onClick="onObjectClick('CANCEL');">`

The ‘onObjectClick’ has to be exactly as shown so that it calls the correct function.  
The ‘OK’ / ‘CANCEL’ can be any text you like and is passed into the Flow as a token so you and use that in the AND section to decide what object was clicked.

---

_[View the full topic](https://community.homey.app/t/app-pro-enhanced-device-widgets-live-1-1-29-test-1-1-30/117835)._
