0 votes
78 views
by (860 points)
Suppose I Have 2 Tab Section Named As Contact Details & Address, What I Want Is, it Needs To Through Validation On Tab Section If I Didn't Fill Details In Contact Tab Section.

1 Answer

0 votes
by (13.6k points)
The validate function of the parent coach view is called before passing to the child coach views, you can make the tab validate function to show the tab label in red color by trapping the tab validate event handler if it not already being done by making a copy of the tab control. You can use this.context.element.querySelectorAll to get the tab label element and then set the style.
by (860 points)
this.context.element.querySelectorAll -----> Has To Be Written In Coach View, In Order To Call?? Right??
by (13.6k points)
Yes in the validate event handler check for existence of error use queryselector to get a handle on the tab label and change the style.

Related questions

0 votes
1 answer 477 views
0 votes
0 answers 12 views
0 votes
0 answers 31 views
0 votes
1 answer 182 views
0 votes
1 answer 55 views
asked Jul 11, 2017 by ashokch (320 points)
0 votes
3 answers 504 views
0 votes
1 answer 172 views
+1 vote
1 answer 82 views
0 votes
1 answer 77 views
...