Posted 27 July 2018, 3:49 am EST
Hi,
In angular2+ applications you may use angular’s template referance variable to distinguish b/w pivot grids.
Please refer to following code snippet:-
<wj-pivot-grid
#pivotGrid /* define template ref var */
(initialized)="initPivot(pivotGrid)" /*pass template ref to init method */
[itemsSource]="thePanel"
[showSelectedHeaders]="'All'">
</wj-pivot-grid>
In equivalent initPivot() method:-
initPivot(pivot){
/*do something with pivot instance */
}
You may also refer to the following sample which implements the same:-
https://stackblitz.com/edit/angular-ozpkxd?file=src%2Fapp%2Fapp.component.html
~Manish