Multiple templates in repeater


#1

can I use multiple templates in repeater?


#2

Repeater is more of a for loop, so it doesn’t support multiple templates. May I know why you don’t prefer a ListView


#3

because I have complex view inside template I have accordion like view which I made I’m hiding and showing it on tap, plus I have drop down and textfields in this view when its not hidden and one submit button.
so I need to decetd tap or other events on individual elements, why I don’t do this with listview is I dont need item tap, I mean tap on template in any area is dectected as item tap in listview


#4

With Angular or Vue we have if conditions that can be applied in a for loop. So you have to do this programatically or extend your own repeater class to support templates.


#5

unfortunatelly i’m on NS core


#6

Yes, I knew. My last point was for you.