0 votes
30 views
in Coach Views by (12.1k points)

1 Answer

0 votes
by (12.1k points)
If you create a custom coach view and place it inside a repeating construct like Table the view index is not automatically added to the Coach View and you may get undesired results

One way to handle this is if you have a OOB CV inside your control you can piggy back on the id of that CV to set the id of the parent Coach View elelemts

var viewid = _this.context.viewid;
viewid += _this.context.element.getElementsByClassName("Vertical_Layout")[0].id;
_this.context.element.querySelectorAll("div")[0].id = viewid + "-example";

Related questions

0 votes
1 answer 75 views
0 votes
0 answers 60 views
0 votes
0 answers 13 views
0 votes
0 answers 61 views
0 votes
1 answer 58 views
...