10-17-2021 13:29
10-17-2021 13:29
I'm having trouble figuring out how to change the text of a cycleview-item. In the example code shown in the View Components Guide, I'd like to update the text between the <text> and </text> tags. Perhaps something like items[2].text, but of course that doesn't work. How can I access that field? Or create a text field as part of the cycleview-item that I can assign data to be displayed in the list?
Thanks,
-Curtis
10-17-2021 14:20
10-17-2021 14:20
It may react to changes made to items in settingsStorage.
10-23-2021 17:32
10-23-2021 17:32
The way that I was able to do this was to put an id tag inside the text tag and then assign some variable (someVar) to it like this: document.getElementById("id").textContent = someVar;