0 votes
34 views
in Coach Views by (13.6k points)

1 Answer

0 votes
by (13.6k 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 71 views
0 votes
0 answers 30 views
0 votes
1 answer 31 views
0 votes
1 answer 104 views
0 votes
1 answer 53 views
0 votes
1 answer 132 views
–1 vote
0 answers 81 views
+1 vote
2 answers 292 views
asked Dec 1, 2018 in BPD by anonymous
–1 vote
1 answer 207 views
0 votes
2 answers 405 views
asked Aug 31, 2018 in BPD by anonymous
+1 vote
6 answers 1.3k views
asked Jun 11, 2018 in BPD by anonymous
0 votes
1 answer 240 views
0 votes
0 answers 94 views
0 votes
1 answer 824 views
0 votes
1 answer 105 views
...