04-07-2019 09:26 - edited 04-07-2019 09:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-07-2019 09:26 - edited 04-07-2019 09:27
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is it possible to trigger onclick event without button component? I want to trigger click event when user press custom circle.
For example
//index.gui
<circle id="btn" cx="75" cy="230" r="50" fill="red" />
//index.js
const btn = document.getElementById("btn");
btn.addEventListener("click", () => {
console.log('XXXXXXXXXXXXX');
});

04-16-2019 18:22 - edited 04-16-2019 18:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-16-2019 18:22 - edited 04-16-2019 18:23
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Are you building an application for the smart watch (Ionic and Versa family) using the Device SDK? I want to make certain your question is in the correct forum room.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

04-16-2019 21:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-16-2019 21:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-16-2019 21:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-16-2019 21:35
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
You could just be missing
pointer-events="visible"
see https://dev.fitbit.com/build/guides/user-interface/javascript/#events
Gondwana Software

04-18-2019 15:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



04-18-2019 15:11
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Thank you, @talantbekov_k . I'm going to move your post to the SDK Development forum. Someone there should be able to help you.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

