04-07-2019 09:26 - edited 04-07-2019 09:27
04-07-2019 09:26 - edited 04-07-2019 09:27
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');
});
Best Answer04-16-2019 18:22 - edited 04-16-2019 18:23
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-16-2019 18:22 - edited 04-16-2019 18:23
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.
Best Answer04-16-2019 21:17
04-16-2019 21:17
Best Answer04-16-2019 21:35
Gold Fitbit Product Experts share support knowledge on the forums and advocate for the betterment of Fitbit products and services. Learn more
04-16-2019 21:35
You could just be missing
pointer-events="visible"
see https://dev.fitbit.com/build/guides/user-interface/javascript/#events
Best Answer04-18-2019 15:11
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
04-18-2019 15:11
Thank you, @talantbekov_k . I'm going to move your post to the SDK Development forum. Someone there should be able to help you.
Best Answer