Hi sleedoh,
I don't know about completely removing them if that's what you're after, but you can certainly hide them. In your index.gui, make sure you give the individual items you're cycling through their own names. E.g.
<use href="#cycleview-item" id="activeSection">
<text id="randomText">Hello</text>
</use>
Then in your app code, get a handle to that specific cycleview item:
let activeSection = document.getElementById("activeSection");
Once you have the handle you can show and hide that item using display="none" and display="inline":
// To hide the element:
activeSection.style.display = "none";
// To show it:
activeSection.style.display = "inline";
Cheers,
Paul.
Best AnswerDo you want to remove it so users don't see it, or allow them to select which items to cycle on screen?
Best AnswerWould be useful to remove it so it doesn't get cycled through. If we just hide it then it will be cycled as an emtpy view.
My use case is for the stats cycle items in the sdk moment sample project i want to remove the elevation for versa lite only.
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.
I wasn't able to make this work either. My suggestion would be to either implement your own, or have 2 cycle views, and just hide/show the entire thing. I have an internal ticket for this issue.