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 Answer
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.
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 Answer
Best AnswerYou could just be missing
pointer-events="visible"
see https://dev.fitbit.com/build/guides/user-interface/javascript/#events
Best Answer
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.
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