Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dynamic data for Cycle View

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

 

Best Answer
0 Votes
2 REPLIES 2

It may react to changes made to items in settingsStorage.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

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;

Best Answer
0 Votes