0 votes
10 views
in Coach Views by (12.4k points)

1 Answer

0 votes
by (12.4k points)
document.querySelectorAll() will get you all matching elements in the entire document whereas this.context.element.querySelector() or this.context.element.getElementsByClassName() will limit your search to the elements defined or created inside the current coach view. This is useful to create custom controls which will not affect other instances of the control.

Related questions

0 votes
1 answer 46 views
0 votes
0 answers 3 views
0 votes
1 answer 12 views
0 votes
1 answer 84 views
0 votes
1 answer 87 views
–1 vote
0 answers 45 views
+1 vote
2 answers 213 views
asked Dec 1, 2018 in BPD by anonymous
–1 vote
1 answer 178 views
0 votes
2 answers 327 views
asked Aug 31, 2018 in BPD by anonymous
+1 vote
6 answers 1k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 175 views
0 votes
0 answers 87 views
0 votes
1 answer 691 views
0 votes
0 answers 55 views
...